Ver código fonte

deploy: imagePullPolicy 改 Always,同 tag 覆盖推送可滚动生效

wenhongquan 1 mês atrás
pai
commit
1bb11f684d
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      deploy/k8s/pouchlab.yaml

+ 2 - 1
deploy/k8s/pouchlab.yaml

@@ -34,7 +34,8 @@ spec:
       containers:
         - name: pouchlab
           image: k8s.device.wenhq.top:8583/docker_r/pouchlab:1.8.23
-          imagePullPolicy: IfNotPresent
+          # Always:同 tag 覆盖推送后,rollout restart 可强制拉新镜像
+          imagePullPolicy: Always
           env:
             - name: PL_DB_HOST
               value: pouchlab-mysql.pouchlab.svc.cluster.local