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

前端 未结 4 885
独厮守ぢ
独厮守ぢ 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-10 08:07

    --recreate-pods has been removed in helm 3 and that certainly got the attention of some helm users.

    I force the pods to be recreated using a timestamp in the deployment pod spec. Note that it has to be in the spec, this will not work at the deployment top level:

    spec:
      template:
        metadata:
          annotations:
            releaseTime: {{ dateInZone "2006-01-02 15:04:05Z" (now) "UTC"| quote }}
    

提交回复
热议问题