| 职责 | 维持 replicas 副本数:少了建、多了删 |
|---|---|
| 归属 | 由 Deployment 创建并以 ownerReferences 管理 |
| 命名 | web-7f9d8c5b4-xxx:Deployment 名+模板哈希+随机后缀 |
| 观察 | kubectl get rs -l app=web 可看到新旧两代 |
查看层级
查看层级
kubectl get deploy,rs,pods -l app=web
kubectl describe rs web-7f9d8c5b4 | head -20滚动更新时新旧 RS 并存(旧 RS 保留 0 副本以备回滚);回滚即把副本还给旧 RS。