HelmRelease rollout of pod when secret is changed #4350
Unanswered
DimitarSpiroskiAtPW
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to know if Flux offers some way to enforce a rollout of a deployment when a secret which is bound to an env value is updated.
I have 2 repositories. One stores the HelmChart, and the other one is the flux-fleet repository which has the following structure:
The secret at
apps/prod/secret.yamlis encrypted with sops, andclusters/prod/apps.yamlhas the decryption configured for that.When I update the secret at
apps/prod/secret.yamlit will trigger flux to reconcile, and I can see that the helm upgrade is called as some hooks are called. However, there is no rollout for the deployment where this secret is used as an env var ( the old pod remains running ).From my current understanding there are 2 potential solutions:
Is there another option?
I would like to avoid using Reloader just to avoid having one more moving part in the machine.
I am new to k8s, so maybe I'm mistaken, but my understanding is that it is better to use secrets , and to avoid confidential information from going through the values.yaml file like in the second option.
What is the recommended best practice for such scenario?
Beta Was this translation helpful? Give feedback.
All reactions