本文已参与「新人创作礼」活动,一起开启掘金创作之路。 ReplicationController rolling update实现了pod的滚动更新
strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate 1 2 3 4 5 .spec.strategy.rollingUpdate.maxSurge 表示Scale Up新的ReplicaSet时,按照比例计算出允许的MaxSurge .spec.strategy.rollingUpdate.maxUnavailable 表示Scale Down旧的ReplicaSet时,按照比例计算出允许的maxUnavailable