From 41114eb0ad9fc205a62a3f1b0811be0ca8d001b2 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Mon, 21 Sep 2026 12:16:31 +0100 Subject: [PATCH] =?UTF-8?q?=E9=9D=99=E6=80=81=E7=AB=99=E7=82=B9=E6=94=B9?= =?UTF-8?q?=E7=94=A8=E5=B0=B1=E7=BB=AA=E5=90=8E=E5=88=87=E6=8D=A2=E7=9A=84?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E5=8F=91=E5=B8=83=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=81=9C=E6=9C=BA=E7=AD=89=E5=BE=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.py b/deploy.py index d3ddc16..1ec2e5c 100644 --- a/deploy.py +++ b/deploy.py @@ -30,7 +30,7 @@ def main(): ssh('mkdir','-p',target) run('rsync','-az','--chmod=D755,F644',str(ROOT/'public')+'/',f'{HOST}:{target}/') def point(path): - patch={'spec':{'template':{'spec':{'volumes':[{'name':'site','hostPath':{'path':path,'type':'Directory'}}]}}}} + patch={'spec':{'strategy':{'type':'RollingUpdate','rollingUpdate':{'maxUnavailable':0,'maxSurge':1}},'template':{'spec':{'volumes':[{'name':'site','hostPath':{'path':path,'type':'Directory'}}]}}}} kube('patch','deployment','hugo','--type=strategic','-p',json.dumps(patch)) kube('rollout','status','deployment/hugo','--timeout=120s') try: