更改删除jenkins机器上旧镜像步骤

This commit is contained in:
dxin
2025-11-06 12:11:02 +08:00
parent a9653d8da1
commit f1ba36dc3b
11 changed files with 222 additions and 212 deletions

View File

@@ -20,8 +20,8 @@ spec:
strategy:
type: RollingUpdate # 滚动更新策略
rollingUpdate:
maxSurge: 1 # 最大新增副本数
maxUnavailable: 0 # 最大不可用副本数
maxSurge: 1 # 最大新增副本数更新过程中「超出期望副本数」最多为1每次只创建1个新 Pod
maxUnavailable: 0 # 最大不可用副本数,更新过程中「不可用 Pod 数」最多为0不允许服务降级
template:
metadata:
labels:
@@ -39,7 +39,7 @@ spec:
containers:
- name: test-flymoon-admin # 容器名称
image: uswccr.ccs.tencentyun.com/lessietest/flymoon-admin:v0.0.1 # 容器镜像
imagePullPolicy: IfNotPresent # 镜像拉取策略 ,有则不
imagePullPolicy: Always # 镜像拉取策略 拉
env:
- name: POD_NAME
valueFrom: