其他分享
首页 > 其他分享> > 滚动更新策略 type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0

滚动更新策略 type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0

作者:互联网

  1. type: RollingUpdate
  2.   rollingUpdate:
  3.   maxSurge: 1
  4.   maxUnavailable: 0

 

 

maxSurge:滚动更新时最多可以多启动多少个pod
maxUnavailable:滚动更新时最大可以删除多少个pod
maxSurge和maxUnavailable可以用来决定更新是的最大pod数和最小pod数
是先启动一个pod再删除一个pod还是先删除一个pod再启动一个pod
例如
replicas是5
maxSurge: 1
maxUnavailable: 0
更新时 最大的pod数是 replicas+ maxSurge = 5+1 =6,最大的个数是6
最小pod数是 replicas - maxUnavailable = 5-0 = 5,最小pod数是5,所以只能先启动一个pod,再删除一个pod

TRANSLATE with x English
Arabic Hebrew Polish
Bulgarian Hindi Portuguese
Catalan Hmong Daw Romanian
Chinese Simplified Hungarian Russian
Chinese Traditional Indonesian Slovak
Czech Italian Slovenian
Danish Japanese Spanish
Dutch Klingon Swedish
English Korean Thai
Estonian Latvian Turkish
Finnish Lithuanian Ukrainian
French Malay Urdu
German Maltese Vietnamese
Greek Norwegian Welsh
Haitian Creole Persian  
  TRANSLATE with COPY THE URL BELOW Back EMBED THE SNIPPET BELOW IN YOUR SITE Enable collaborative features and customize widget: Bing Webmaster Portal Back

标签:rollingUpdate,maxSurge,maxUnavailable,location,pod,type,数是
来源: https://www.cnblogs.com/gaoyuechen/p/16523381.html