# Elastic user password change in kubernetes secret

**URL:** <https://discuss.elastic.co/t/elastic-user-password-change-in-kubernetes-secret/329328>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [April 4, 2023, 1:38pm UTC](https://discuss.elastic.co/t/elastic-user-password-change-in-kubernetes-secret/329328 "2023-04-04T13:38:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![basavarajvn0513](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@basavarajvn0513](https://discuss.elastic.co/u/basavarajvn0513)\
**Post date:** [April 4, 2023, 1:38pm UTC](https://discuss.elastic.co/t/elastic-user-password-change-in-kubernetes-secret/329328/1 "2023-04-04T13:38:36Z")

</div>

I have elasticsearch ,kiabana,logstash,filebeat in kuberentes. All use the same elasatic username and password as ENV variables from the secret .yaml. I want to change the password for the elastic user . After I change the password in secret yaml how should all the pods start using a new password from secret without any issues.  
Also how is it possible pod start using the new password with restart of pods.

---

<div class="post-metadata">

**Author:** ![michael.morello](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael.morello/32/47448_2.png) [@michael.morello](https://discuss.elastic.co/u/michael.morello)\
**Post date:** [April 12, 2023, 5:37am UTC](https://discuss.elastic.co/t/elastic-user-password-change-in-kubernetes-secret/329328/2 "2023-04-12T05:37:03Z")

</div>

Hi,

From your message I'm not sure that you are using ECK, or maybe partially? Assuming that you're using ECK there is no need to manage users for the Stack components. It is done automatically by the ECK operator. I would suggest to try it by yourself on your Kubernetes cluster by following the quickstart: [Deploy ECK in your Kubernetes cluster | Elastic Cloud on Kubernetes [2.7] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-eck.html)

Hope it helps.

---

<div class="post-metadata">

**Author:** ![basavarajvn0513](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@basavarajvn0513](https://discuss.elastic.co/u/basavarajvn0513)\
**Post date:** [April 12, 2023, 9:18am UTC](https://discuss.elastic.co/t/elastic-user-password-change-in-kubernetes-secret/329328/3 "2023-04-12T09:18:19Z")

</div>

> [@michael.morello](#):
>
> ECK

Thank you.  
We have installed all components through helm chart . Using sealed secret for elastic user credentials . In production If I want to change the password for elastic admin user should I need to restart the elasticsearch cluster and other pods to get the new password . Is there any other way to get the new password for all pods.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 10, 2023, 9:19am UTC](https://discuss.elastic.co/t/elastic-user-password-change-in-kubernetes-secret/329328/4 "2023-05-10T09:19:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
