WIll “helm upgrade” restart PODS even if they are not affected by upgrade?

前端 未结 4 887
独厮守ぢ
独厮守ぢ 2021-02-10 07:37

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

4条回答
  •  醉话见心
    2021-02-10 07:50

    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

提交回复
热议问题