Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restart Pod when secrets gets updated

We are using secret as environment variables on pod, but every time we have updated on secrets, we are redeploying the pods to take changes effect. We are looking for a mechanism where Pods get restarted automatically whenever secrets gets updated. Any help on this?

Thanks in advance.

like image 585
ramesh reddy Avatar asked Jan 01 '26 20:01

ramesh reddy


1 Answers

If you mount your secrets to pod it will get updated automatically you don't have to restart your pod as mentioned here

Other approaches are stakater reloader which can reload your deployments based on configs, secrets etc

like image 63
Mohsin Amjad Avatar answered Jan 04 '26 19:01

Mohsin Amjad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!