[ko] fix a mistranslated; maxUnavailable rounds down, maxSurge rounds up.
has been mistranslated. 🥺 rounding down is '내림' in Korean. rounding up is '올림' in Korean. If calculate '반올림' when desired replica 1, both maxUnavailable and maxSurge should be 0. In English documentation, there was written explicitly 'rounding down', 'rounding up'. Also in code, explicitly using 'Math.Ceil' and 'Math.floor'. - Related codes + [deployment_util.go > maxSurge](pull/32297/head7152825c06/pkg/controller/deployment/util/deployment_util.go (L456)
) + [deployment_util.go > ResolveFenceposts](7152825c06/pkg/controller/deployment/util/deployment_util.go (L849)
) + [util/instr.go > GetScaledValueFromIntOrPercent](7152825c06/staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go (L146)
) - Korean dictionary + [올림: rounding up](https://krdict.korean.go.kr/m/eng/searchResultView?wordMatchFlag=N¤tPage=1&mainSearchWord=%EC%98%AC%EB%A6%BC&sort=&searchType=W&proverbType=&exaType=&ParaWordNo=68195&font_size=12&nationCode=6&nation=eng&viewType=A) + [반올림: rounding off](https://krdict.korean.go.kr/m/eng/searchResultView?wordMatchFlag=N¤tPage=1&mainSearchWord=%EB%B0%98%EC%98%AC%EB%A6%BC&sort=&searchType=W&proverbType=&exaType=&ParaWordNo=57172&font_size=12&nationCode=6&nation=eng&viewType=A)
parent
8f2cf33da0
commit
21e2046efb
|
@ -1131,7 +1131,7 @@ API 버전 `apps/v1` 에서는 `.spec.selector` 와 `.metadata.labels` 이 설
|
|||
|
||||
`.spec.strategy.rollingUpdate.maxUnavailable` 은 업데이트 프로세스 중에 사용할 수 없는 최대 파드의 수를 지정하는 선택적 필드이다.
|
||||
이 값은 절대 숫자(예: 5) 또는 의도한 파드 비율(예: 10%)이 될 수 있다.
|
||||
절대 값은 반올림해서 백분율로 계산한다.
|
||||
절대 값은 내림해서 백분율로 계산한다.
|
||||
만약 `.spec.strategy.rollingUpdate.maxSurge` 가 0이면 값이 0이 될 수 없다. 기본 값은 25% 이다.
|
||||
|
||||
예를 들어 이 값을 30%로 설정하면 롤링업데이트 시작시 즉각 이전 레플리카셋의 크기를
|
||||
|
@ -1144,7 +1144,7 @@ API 버전 `apps/v1` 에서는 `.spec.selector` 와 `.metadata.labels` 이 설
|
|||
`.spec.strategy.rollingUpdate.maxSurge` 는 의도한 파드의 수에 대해 생성할 수 있는 최대 파드의 수를 지정하는 선택적 필드이다.
|
||||
이 값은 절대 숫자(예: 5) 또는 의도한 파드 비율(예: 10%)이 될 수 있다.
|
||||
`MaxUnavailable` 값이 0이면 이 값은 0이 될 수 없다.
|
||||
절대 값은 반올림해서 백분율로 계산한다. 기본 값은 25% 이다.
|
||||
절대 값은 올림해서 백분율로 계산한다. 기본 값은 25% 이다.
|
||||
|
||||
예를 들어 이 값을 30%로 설정하면 롤링업데이트 시작시 새 레플리카셋의 크기를 즉시 조정해서
|
||||
기존 및 새 파드의 전체 갯수를 의도한 파드의 130%를 넘지 않도록 한다.
|
||||
|
|
Loading…
Reference in New Issue