kubernetes helm install with xpack security enabled won't start - security index is unavailable
See original GitHub issueChart version: 7.3.0 Kubernetes version: 1.14 Kubernetes provider: E.g. GKE (Google Kubernetes Engine) IBM Cloud
Helm Version:
helm get release
output
e.g. helm get elasticsearch
(replace elasticsearch
with the name of your helm release)
Describe the bug: Master nodes won’t start: seeing this error in the logs: {“type”: “server”, “timestamp”: “2019-09-06T18:50:44,128+0000”, “level”: “ERROR”, “component”: “o.e.x.s.a.e.NativeUsersStore”, “cluster.name”: “elasticsearch”, “node.name”: “elasticsearch-master-0”, “cluster.uuid”: “SAahFVjPToKipK4KvR6zLQ”, “node.id”: “7-93zAjkSOKaGkNktJSbRw”, “message”: “security index is unavailable. short circuiting retrieval of user [redacted]” } Steps to reproduce:
- added the following to values: esConfig: elasticsearch.yml: | xpack.security.enabled: true
roles: master: “true” ingest: “false” data: “false” 3. extraEnvs:
- name: ELASTIC_PASSWORD valueFrom: secretKeyRef: name: elastic-credentials key: password
- name: ELASTIC_USERNAME valueFrom: secretKeyRef: name: elastic-credentials key: username
Expected behavior: 3 master nodes created with basic auth enabled.
Provide logs and/or server output (if relevant):
Any additional context:
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top GitHub Comments
@BlackDark Yes, that worked for me too, I made the user with a different name and i got the same issue. I switched back to the name
elastic
and it worked for me.Run into similar problems. ELASTIC_USERNAME env was without effect for me. Was always
elastic
so i kept it for solving the readiness check in k8s. After that the node started up and i was able to connect kibana and log in withelastic
user.