ReplicationController rolling update实现了pod的滚动更新

  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate

.spec.strategy.rollingUpdate.maxSurge 表示Scale Up新的ReplicaSet时,按照比例计算出允许的MaxSurge
.spec.strategy.rollingUpdate.maxUnavailable 表示Scale Down旧的ReplicaSet时,按照比例计算出允许的maxUnavailable

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐