Skip to content

Commit 21e2046

Browse files
aeomhskakao-tim-aeom
authored andcommitted
[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](https://github.com/kubernetes/kubernetes/blob/7152825c0695d62fe06b47cc3e1699095290d73f/pkg/controller/deployment/util/deployment_util.go#L456) + [deployment_util.go > ResolveFenceposts](https://github.com/kubernetes/kubernetes/blob/7152825c0695d62fe06b47cc3e1699095290d73f/pkg/controller/deployment/util/deployment_util.go#L849) + [util/instr.go > GetScaledValueFromIntOrPercent](https://github.com/kubernetes/kubernetes/blob/7152825c0695d62fe06b47cc3e1699095290d73f/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&currentPage=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&currentPage=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)
1 parent 8f2cf33 commit 21e2046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/ko/docs/concepts/workloads/controllers/deployment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ API 버전 `apps/v1` 에서는 `.spec.selector` 와 `.metadata.labels` 이 설
11311131

11321132
`.spec.strategy.rollingUpdate.maxUnavailable` 은 업데이트 프로세스 중에 사용할 수 없는 최대 파드의 수를 지정하는 선택적 필드이다.
11331133
이 값은 절대 숫자(예: 5) 또는 의도한 파드 비율(예: 10%)이 될 수 있다.
1134-
절대 값은 반올림해서 백분율로 계산한다.
1134+
절대 값은 내림해서 백분율로 계산한다.
11351135
만약 `.spec.strategy.rollingUpdate.maxSurge` 가 0이면 값이 0이 될 수 없다. 기본 값은 25% 이다.
11361136

11371137
예를 들어 이 값을 30%로 설정하면 롤링업데이트 시작시 즉각 이전 레플리카셋의 크기를
@@ -1144,7 +1144,7 @@ API 버전 `apps/v1` 에서는 `.spec.selector` 와 `.metadata.labels` 이 설
11441144
`.spec.strategy.rollingUpdate.maxSurge` 는 의도한 파드의 수에 대해 생성할 수 있는 최대 파드의 수를 지정하는 선택적 필드이다.
11451145
이 값은 절대 숫자(예: 5) 또는 의도한 파드 비율(예: 10%)이 될 수 있다.
11461146
`MaxUnavailable` 값이 0이면 이 값은 0이 될 수 없다.
1147-
절대 값은 반올림해서 백분율로 계산한다. 기본 값은 25% 이다.
1147+
절대 값은 올림해서 백분율로 계산한다. 기본 값은 25% 이다.
11481148

11491149
예를 들어 이 값을 30%로 설정하면 롤링업데이트 시작시 새 레플리카셋의 크기를 즉시 조정해서
11501150
기존 및 새 파드의 전체 갯수를 의도한 파드의 130%를 넘지 않도록 한다.

0 commit comments

Comments
 (0)