Hello guys, I am trying to deploy elasticsearch on kubernetes using helm chart, . . .

Yash:
Hello guys, I am trying to deploy elasticsearch on kubernetes using helm chart, lots of time I got same error which is related to initcontainer goes in crashloopbackoff state, please advice me correctly here

Mert Alnuaimi:
I suggest you check the helm chart and the image its using

Mert Alnuaimi:
try deploying without helm and see if your config works

Mariusz Gomse:
@Yash probably your cluster is configured to don’t allow privilaged actions from containers

see https://github.com/elastic/helm-charts/blob/master/elasticsearch/templates/statefulset.yaml#L160

you can disable initContainer if needed :slightly_smiling_face:

I had this problem on my local machine using microk8s