From b5f838fb88bbd55f7449af16c00e4bf4f7dc138a Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Thu, 28 Oct 2021 03:49:42 +0900 Subject: [PATCH] Update outdated in dev-1.22-ko.2(63-66) --- .../pull-image-private-registry.md | 2 +- .../configure-pod-container/static-pod.md | 7 +++++++ .../horizontal-pod-autoscale-walkthrough.md | 20 +++++++++++-------- .../horizontal-pod-autoscale.md | 14 ++----------- 4 files changed, 22 insertions(+), 21 deletions(-) diff --git a/content/ko/docs/tasks/configure-pod-container/pull-image-private-registry.md b/content/ko/docs/tasks/configure-pod-container/pull-image-private-registry.md index 2188ced539..bb14d1c0ac 100644 --- a/content/ko/docs/tasks/configure-pod-container/pull-image-private-registry.md +++ b/content/ko/docs/tasks/configure-pod-container/pull-image-private-registry.md @@ -102,7 +102,7 @@ kubectl create secret docker-registry regcred --docker-server=` 은 프라이빗 도커 저장소의 FQDN 주소이다. - 도커허브(DockerHub)는 `https://index.docker.io/v2/` 를 사용한다. + 도커허브(DockerHub)는 `https://index.docker.io/v1/` 를 사용한다. * `` 은 도커 사용자의 계정이다. * `` 은 도커 사용자의 비밀번호이다. * `` 은 도커 사용자의 이메일 주소이다. diff --git a/content/ko/docs/tasks/configure-pod-container/static-pod.md b/content/ko/docs/tasks/configure-pod-container/static-pod.md index aea2fcffa1..cc837605b9 100644 --- a/content/ko/docs/tasks/configure-pod-container/static-pod.md +++ b/content/ko/docs/tasks/configure-pod-container/static-pod.md @@ -31,6 +31,13 @@ API 서버에서 제어될 수는 없다. 을 사용하는 것이 바람직하다. {{< /note >}} +{{< note >}} +스태틱 파드의 `spec`은 다른 API 오브젝트(예를 들면, +{{< glossary_tooltip text="서비스어카운트" term_id="service-account" >}}, +{{< glossary_tooltip text="컨피그맵" term_id="configmap" >}}, +{{< glossary_tooltip text="시크릿" term_id="secret" >}}, 등)가 참조할 수 없다. +{{< /note >}} + ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} diff --git a/content/ko/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md b/content/ko/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md index a3c6285aac..1ec1db988c 100644 --- a/content/ko/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md +++ b/content/ko/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md @@ -1,4 +1,9 @@ --- + + + + + title: Horizontal Pod Autoscaler 연습 content_type: task weight: 100 @@ -100,7 +105,8 @@ NAME REFERENCE TARGET MINPODS MAXPODS REPLICA php-apache Deployment/php-apache/scale 0% / 50% 1 10 1 18s ``` -아직 서버로 어떠한 요청도 하지 않았기 때문에, 현재 CPU 소비는 0%임을 확인할 수 있다 (``TARGET``은 디플로이먼트에 의해 제어되는 파드들의 평균을 나타낸다). +아직 서버로 어떠한 요청도 하지 않았기 때문에, 현재 CPU 소비는 0%임을 확인할 수 있다. +(``TARGET``은 디플로이먼트에 의해 제어되는 파드들의 평균을 나타낸다) ## 부하 증가 @@ -236,15 +242,11 @@ CPU 외에 다른 메트릭을 지정할 수 있는데, 기본적으로 지원 더 고급화된 클러스터 모니터링 설정이 필요하다. 이러한 대체 메트릭 타입중 첫 번째는 *파드 메트릭* 이다. -이 메트릭은 파드들을 설명하고, 파드들간의 평균을 내며, -대상 값과 비교하여 레플리카 개수를 결정한다. - -이것들은 `AverageValue`의 `target`만을 지원한다는 것을 제외하면, -자원 메트릭과 매우 유사하게 동작한다. +이 메트릭은 파드들을 설명하고, 파드들 간의 평균을 내며, 대상 값과 비교하여 레플리카 개수를 결정한다. +이것들은 `AverageValue`의 `target`만을 지원한다는 것을 제외하면, 자원 메트릭과 매우 유사하게 동작한다. 파드 메트릭은 이처럼 메트릭 블록을 사용하여 정의된다. - ```yaml type: Pods pods: @@ -395,7 +397,9 @@ object: external: metric: name: queue_messages_ready - selector: "queue=worker_tasks" + selector: + matchLabels: + queue: "worker_tasks" target: type: AverageValue averageValue: 30 diff --git a/content/ko/docs/tasks/run-application/horizontal-pod-autoscale.md b/content/ko/docs/tasks/run-application/horizontal-pod-autoscale.md index 0700f3cb8d..8ceafa7d6a 100644 --- a/content/ko/docs/tasks/run-application/horizontal-pod-autoscale.md +++ b/content/ko/docs/tasks/run-application/horizontal-pod-autoscale.md @@ -68,14 +68,7 @@ Horizontal Pod Autoscaler는 컨트롤러 HorizontalPodAutoscaler는 보통 일련의 API 집합(`metrics.k8s.io`, `custom.metrics.k8s.io`, `external.metrics.k8s.io`)에서 메트릭을 가져온다. `metrics.k8s.io` API는 대개 별도로 -시작해야 하는 메트릭-서버에 의해 제공된다. 가이드는 -[메트릭-서버](/ko/docs/tasks/debug-application-cluster/resource-metrics-pipeline/#메트릭-서버)를 -참조한다. HorizontalPodAutoscaler는 힙스터(Heapster)에서 직접 메트릭을 가져올 수도 있다. - -{{< note >}} -{{< feature-state state="deprecated" for_k8s_version="v1.11" >}} -힙스터에서 메트릭 가져오기는 Kubernetes 1.11에서 사용 중단(deprecated)됨. -{{< /note >}} +시작해야 하는 메트릭-서버에 의해 제공된다. 더 자세한 정보는 [메트릭-서버](/ko/docs/tasks/debug-application-cluster/resource-metrics-pipeline/#메트릭-서버)를 참조한다. 자세한 사항은 [메트릭 API를 위한 지원](#메트릭-api를-위한-지원)을 참조한다. @@ -225,8 +218,7 @@ v1.12부터는 새로운 알고리즘 업데이트가 업스케일 지연에 대 - `--horizontal-pod-autoscaler-downscale-delay` : 다운스케일이 안정화되기까지의 시간 간격을 지정한다. Horizontal Pod Autoscaler는 이전의 권장하는 크기를 기억하고, - 이 시간 간격에서의 가장 큰 크기에서만 작동한다. - 기본값은 5분(`5m0s`)이다. + 이 시간 간격에서의 가장 큰 크기에서만 작동한다. 기본값은 5분(`5m0s`)이다. {{< note >}} 이러한 파라미터 값을 조정할 때 클러스터 운영자는 가능한 결과를 알아야 @@ -345,8 +337,6 @@ API에 접속하려면 클러스터 관리자는 다음을 확인해야 한다. * 외부 메트릭의 경우, 이것은 `external.metrics.k8s.io` API이다. 위에 제공된 사용자 정의 메트릭 어댑터에서 제공될 수 있다. -* `--horizontal-pod-autoscaler-use-rest-clients`는 `true`이거나 설정되지 않음. 이것을 false로 설정하면 더 이상 사용되지 않는 힙스터 기반 오토스케일링으로 전환된다. - 이런 다양한 메트릭 경로와 각각의 다른 점에 대한 상세 내용은 관련 디자인 제안서인 [HPA V2](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/autoscaling/hpa-v2.md), [custom.metrics.k8s.io](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/instrumentation/custom-metrics-api.md),