elastic / cloud-on-k8s

Elastic Cloud on Kubernetes
Other
2.57k stars 697 forks source link

ES restart after encrypting etcd data on openshift container platform 4.12 #7753

Open patrisaru opened 4 months ago

patrisaru commented 4 months ago

After performing etcd encryption on a cluster with openshift self managed (onprem) 4.12, we have detected that every seven days the api server performs a key rotation that seems to be noticeable to the elasticsearch operators. This causes the ES operators to trigger a restart of the elasticsearch pods. According with the redhat documentation https://docs.openshift.com/container-platform/4.12/security/encrypting-etcd.html seems that the encrytion has affect to some objects like secrets or configmap...We are understanding that the ES operator is sensitive to this process and cause a restart on the ES pods...

Is this the expected behaviour? Could we avoid this behaviour?

Here is the ES configuration:


apiVersion: elasticsearch.k8s.elastic.co/v1beta1 kind: Elasticsearch metadata: name: elastic-elasticsearch spec: version: 7.10.1 nodeSets: ###################################################### #

MASTER NODE

# ######################################################

Thanks in advance!

barkbay commented 3 months ago

Are you using secure settings? You might be affected by https://github.com/elastic/cloud-on-k8s/issues/7842, fixed in the next version.