I want to set up elasticsearch cluster automatically with ansible. Reset built-in users password with elasticsearch-setup-password after cluster is up. There is a readiness probe to check if cluster is up and ready. But I could not check cluster status before reset password for built-in user according to api authentication. Tried to pass ELASTIC_PASSWORD environment, but it didn't work. I use kubernetes to deploy elasticsearch. So how to achieve this?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.