Hi, I'm setting up a new cluster with security after successfully fixing it (earlier post Help a non-profit STIR the data).
The difference is that I've now configured TLS on the HTTP interface, so my regular elasticsearch-setup-passwords auto -b
doesn't work. So I added the -E xpack.security.http.ssl.verification_mode=certificate
This works upto about the middle of the process and then kills the elastic process, logs me out of the kubectl session and leaves me without a password for the user elastic.
This is the full output with the passwords redacted:
$ kubectl exec -it es-cluster-2 -- bash
[root@es-cluster-2 elasticsearch]# elasticsearch-setup-passwords auto -b -E xpack.security.http.ssl.verification_mode=certificate
Changed password for user apm_system
PASSWORD apm_system =
Changed password for user kibana_system
PASSWORD kibana_system =
command terminated with exit code 137
I'm running version 7.9 with a basic license.
I did an attempt with the configuration already setup for elastic and in interactive mode, the result is the same:
$ kubectl exec -it es-cluster-0 -- elasticsearch-setup-passwords interactive -b
Enter password for [elastic]:
Reenter password for [elastic]:
Enter password for [apm_system]:
Reenter password for [apm_system]:
Enter password for [kibana_system]:
Reenter password for [kibana_system]:
Enter password for [logstash_system]:
Reenter password for [logstash_system]:
Enter password for [beats_system]:
Reenter password for [beats_system]:
Enter password for [remote_monitoring_user]:
Reenter password for [remote_monitoring_user]:
Changed password for user [apm_system]
Changed password for user [kibana_system]
Changed password for user [kibana]
command terminated with exit code 137
When it's about to set the elastic password, it dies. There's nothing in the logs, btw.