PDB 限制自愿中断: ``` apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: api-pdb namespace: default spec: maxUnavailable: 1 selector: matchLabels: app: api ``` Deployment 滚动升级参数: ``` apiVersion: apps/v1 kind: Deployment metadata: name: api spec: replicas: 5 minReadySeconds: 10 strategy: type: RollingUpdate rollingUpdate: maxSurge: 2 maxUnavailable: 1 selector: matchLabels: app: api template: metadata: labels: app: api spec: containers: - name: api image: registry.example.com/app/api:v1.0.0 ports: - containerPort: 3000 ```
点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论
立即
投稿
网站二维码

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部
/* 跳过导航链接 (无障碍) */ position: absolute; top: -100px; left: 15px; z-index: 99999; padding: 8px 16px; background: #007bff; color: #fff; font-size: 14px; border-radius: 0 0 4px 4px; text-decoration: none; transition: top 0.2s; } top: 0; outline: 3px solid #0056b3; }