Hi,
I have a running ECK cluster (ES+Kibana) provisioned with http.tls.selfSignedCertificate.disabled: true
.
Now, I would like to try out alerts, which requires TLS to be enabled. I tried to change the above settings to:
http:
tls:
selfSignedCertificate:
#disabled: true
# add a list of SANs into the self-signed HTTP certificate
subjectAltNames:
- dns: elasticsearch-logging-es-http
- dns: elasticsearch-logging-es-http.default.svc
- dns: elasticsearch-logging-es-http.default.svc.cluster.local
and did kubectl apply -f es.yaml
. The es cluster still on http.
▶ k describe svc elasticsearch-logging-es-http -n logging
Name: elasticsearch-logging-es-http
Namespace: logging
Labels: common.k8s.elastic.co/type=elasticsearch
elasticsearch.k8s.elastic.co/cluster-name=elasticsearch-logging
Annotations: <none>
Selector: common.k8s.elastic.co/type=elasticsearch,elasticsearch.k8s.elastic.co/cluster-name=elasticsearch-logging
Type: ClusterIP
IP: 10.3.0.156
Port: http 9200/TCP
TargetPort: 9200/TCP
Endpoints: 10.2.115.5:9200,10.2.117.5:9200,10.2.39.5:9200
Session Affinity: None
Events: <none>
Also tried to delete the svc and it was recreated with http again.
Anyway I can enable TLS on an existing cluster? Thanks.