adding spec > security > tls > http > will cause the operator to do nothing? #126
-
Just adding the CRD spec will cause the operator to generate no resources... no error, nothing. I paired it all back down to simply supplying a apiVersion: opensearch.opster.io/v1
kind: OpenSearchCluster
metadata:
name: test-opensearch
namespace: default
spec:
security:
tls:
http:
generate: true
# secret:
# name: test-opensearch-http-cert
# caSecret:
# name: opensearch-ca-cert
general:
serviceName: test-opensearch
version: 1.3.2
setVMMaxMapCount: true
dashboards:
enable: true
version: 1.3.2
replicas: 1
resources:
requests:
memory: '512Mi'
limits:
memory: '512Mi'
nodePools:
- component: masters
# Note, had to add these to get a single node cluster to run, otherwise it ends up in a no master elected state when the bootstrap shuts down
additionalConfig:
discovery.seed_hosts: test-opensearch-masters-0
cluster.initial_master_nodes: test-opensearch-masters-0
replicas: 1
diskSize: '2Gi'
resources:
requests:
memory: '2Gi'
limits:
memory: '2Gi'
roles:
- 'data'
- 'master' Note, if you do remove the If anything else is needed, reply and I will do my best to provide more. Really looking forward to leveraging this! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @elimumford . I managed to reproduce your problem, with custom secrets for TLS set the operator runs into an error and does not create the cluster. For reference, the error from the operator log is:
This seems to have the same underlying bug as #116, the operator loses some parts of the supplied cluster spec (in the case of #116 the imagePullSecret, in this case the secret names for TLS). Regarding your question on the structure of the TLS secrets: For example if you create a certificate using cert-manager you will get the three fields (ca.crt, tls.key, tls.crt). But yes, if you create a TLS secret using kubectl you do not have the option to add a ca.crt. Might need to make this more clear in the docs. |
Beta Was this translation helpful? Give feedback.
Hi @elimumford . I managed to reproduce your problem, with custom secrets for TLS set the operator runs into an error and does not create the cluster. For reference, the error from the operator log is: