| 行为 | 旧 Pod 全部终止后才创建新 Pod |
|---|---|
| 代价 | 发布窗口内服务中断 |
| 典型场景 | 独占资源、单实例有状态服务 |
| 回滚 | 同路径重建旧版本镜像 |
Recreate 配置
Recreate 配置
spec:
strategy:
type: Recreate
template:
spec:
containers:
- name: app
image: registry.example.com/app:1.9.0中断时长 = 旧实例停止 + 新实例启动就绪,按最坏情况(镜像拉取、冷启动)预留窗口并提前公告。