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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With