diablo296
diablo296

Reputation: 43

Disable elasticsearch default password in kubernetes

how can I disable secret creating for elasticsearch? I'm using deployment with Kind: ElasticSearch and I want to use my own password but elastic is still recreating k8s password like elastic: password with name xyz-elastic-user. Is it possible to disable it? I found https://github.com/elastic/helm-charts/blob/main/elasticsearch/values.yaml#L60 but it doesn't work

Upvotes: 0

Views: 989

Answers (1)

Adiii
Adiii

Reputation: 59906

you can set custom password through env if you do not want to use the auto-generated one.

extraEnvs:
  - name: ELASTIC_PASSWORD
    value: my-passs

extraEnvs

make sure to set secret false.

secret:
  enabled: false

Upvotes: 1

Related Questions