My helm chart has some 12 PODS. When I did helm upgrade
after changing some values all the PODs are restarted except for one.
My question is
The flag --recreate-pods
was marked as deprecated in Helm 2 and was removed with Helm 3.
Helm suggests to either add checksums of other files which could have changed like this
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
or to add an annotation with a random number which forces an update on each rollout:
annotations:
rollme: {{ randAlphaNum 5 | quote }}
See Helm docs: https://v3.helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments