How to change the admin password for opensearch 2.10.0

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Hi Team, Im using opensearch 2.10.0 as kubernetes service, May I know how to update the default admin password, currently we are using demo certificates. is there any keyword or env variable to update the password.

Describe the issue:

Configuration:

Relevant Logs or Screenshots:

Hi @Sandeep1,

Have you seen this post:

Let me know if you have any further questions.

Best,
Mantas

1 Like

But Im using the demo certificates, does it will work?

Yes, it does.

But I have been tried the same steps long time back in kuberenetes with jobs to update the password, it was not worked, is there direct env variable to pass.?

Any inputs on above ask.

From OpenSearch 2.12.0 you can use:

OPENSEARCH_INITIAL_ADMIN_PASSWORD=yourStrongPassword123!

Please see more here:

Best,
mj

Do we dont have anything for 2.10.0 version.