Seventh Korean l10n work for release 1.18
- Translate reference/command-line-tools-reference/feature-gates.md int… (#22240) - Fix issue of broken links to translated docs (#22105) - Fix issue of document link in some ko documents (#22379) - Translate tasks/administer-cluster/access-cluster-services.md into Ko… (#21776) - Fix issue with 'Linux' and 'Windows' notation in Korean docs (#22362) - Fix issue of broken links to translated docs #2 (#22270) - Fix issue with k8s.io/ko/docs/concepts/overview/kubernetes-api.md (#22261) - Fix issue with k8s.io/ko/docs/concepts/overview/working-with-objects/ (#22263) - Fix incorrect notation of 'directory' into Korean (#22155) - Fix issue with k8s.io/ko/docs/concepts/overview/components.md (#22232) - Update outdated files in dev-1.18-ko.7 (#22128) - Modify spacing term ReplicaSet in Korean (#22148) - Translate tasks/administer-cluster/extended-resource-node.md into Korean (#21849) - Translate tasks/administer-cluster/access-cluster-api.md into Korean (#21730) Co-authored-by: Jerry Park <jaehwa@gmail.com> Co-authored-by: woopyoung <ywp041@gmail.com> Co-authored-by: coolguyhong <podolsmith@naver.com> Co-authored-by: PyungHo Yoon <learder@gmail.com> Co-authored-by: Seokho Son <shsongist@gmail.com> Co-authored-by: jmyung <jesang.myung@gmail.com> Co-authored-by: Ian Y. Choi <ianyrchoi@gmail.com>
This commit is contained in:
@@ -2,27 +2,20 @@
|
||||
title: 데몬셋(DaemonSet)에서 롤백 수행
|
||||
content_type: task
|
||||
weight: 20
|
||||
min-kubernetes-server-version: 1.7
|
||||
---
|
||||
|
||||
|
||||
|
||||
<!-- overview -->
|
||||
|
||||
이 페이지는 데몬셋에서 롤백을 수행하는 방법을 보여준다.
|
||||
|
||||
|
||||
이 페이지는 {{< glossary_tooltip text="데몬셋" term_id="daemonset" >}}에서 롤백을 수행하는 방법을 보여준다.
|
||||
|
||||
|
||||
## {{% heading "prerequisites" %}}
|
||||
|
||||
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
|
||||
|
||||
* 데몬셋 롤아웃 기록과 데몬셋 롤백 기능은
|
||||
쿠버네티스 버전 1.7 이상의 `kubectl` 에서만 지원된다.
|
||||
* [데몬셋에서 롤링 업데이트를
|
||||
수행](/ko/docs/tasks/manage-daemon/update-daemon-set/)하는 방법을 알고 있어야 한다.
|
||||
|
||||
|
||||
|
||||
[데몬셋에서 롤링 업데이트를
|
||||
수행](/ko/docs/tasks/manage-daemon/update-daemon-set/)하는 방법을 이미 알고 있어야 한다.
|
||||
|
||||
<!-- steps -->
|
||||
|
||||
@@ -40,7 +33,7 @@ kubectl rollout history daemonset <daemonset-name>
|
||||
|
||||
이 명령은 데몬셋 리비전 목록을 반환한다.
|
||||
|
||||
```shell
|
||||
```
|
||||
daemonsets "<daemonset-name>"
|
||||
REVISION CHANGE-CAUSE
|
||||
1 ...
|
||||
@@ -60,17 +53,17 @@ kubectl rollout history daemonset <daemonset-name> --revision=1
|
||||
|
||||
이 명령은 해당 리비전의 세부 사항을 반환한다.
|
||||
|
||||
```shell
|
||||
```
|
||||
daemonsets "<daemonset-name>" with revision #1
|
||||
Pod Template:
|
||||
Labels: foo=bar
|
||||
Containers:
|
||||
app:
|
||||
Image: ...
|
||||
Port: ...
|
||||
Environment: ...
|
||||
Mounts: ...
|
||||
Volumes: ...
|
||||
Image: ...
|
||||
Port: ...
|
||||
Environment: ...
|
||||
Mounts: ...
|
||||
Volumes: ...
|
||||
```
|
||||
|
||||
### 2단계: 특정 리비전으로 롤백
|
||||
@@ -82,16 +75,19 @@ kubectl rollout undo daemonset <daemonset-name> --to-revision=<revision>
|
||||
|
||||
성공하면, 명령은 다음을 반환한다.
|
||||
|
||||
```shell
|
||||
```
|
||||
daemonset "<daemonset-name>" rolled back
|
||||
```
|
||||
|
||||
`--to-revision` 플래그를 지정하지 않은 경우, 마지막 리비전이 선택된다.
|
||||
{{< note >}}
|
||||
`--to-revision` 플래그를 지정하지 않은 경우, kubectl은 가장 최신의 리비전을 선택한다.
|
||||
{{< /note >}}
|
||||
|
||||
### 3단계: 데몬셋 롤백 진행 상황 확인
|
||||
|
||||
`kubectl rollout undo daemonset` 은 서버에 데몬셋 롤백을 시작하도록
|
||||
지시한다. 실제 롤백은 서버 측에서 비동기적으로 수행된다.
|
||||
지시한다. 실제 롤백은 클러스터 {{< glossary_tooltip term_id="control-plane" text="컨트롤 플레인" >}}
|
||||
내에서 비동기적으로 수행된다.
|
||||
|
||||
롤백 진행 상황을 보려면 다음의 명령을 수행한다.
|
||||
|
||||
@@ -101,21 +97,17 @@ kubectl rollout status ds/<daemonset-name>
|
||||
|
||||
롤백이 완료되면, 출력 결과는 다음과 비슷하다.
|
||||
|
||||
```shell
|
||||
```
|
||||
daemonset "<daemonset-name>" successfully rolled out
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- discussion -->
|
||||
|
||||
## 데몬셋 리비전의 이해
|
||||
|
||||
이전 `kubectl rollout history` 단계에서, 데몬셋 리비전 목록을
|
||||
얻었다. 각 리비전은 `ControllerRevision` 이라는 리소스에 저장된다.
|
||||
`ControllerRevision` 은 쿠버네티스 릴리스 1.7 이상에서만 사용할 수 있는
|
||||
리소스이다.
|
||||
얻었다. 각 리비전은 ControllerRevision이라는 리소스에 저장된다.
|
||||
|
||||
각 리비전에 저장된 내용을 보려면, 데몬셋 리비전 원시 리소스를
|
||||
찾는다.
|
||||
@@ -124,30 +116,29 @@ daemonset "<daemonset-name>" successfully rolled out
|
||||
kubectl get controllerrevision -l <daemonset-selector-key>=<daemonset-selector-value>
|
||||
```
|
||||
|
||||
이 명령은 `ControllerRevisions` 의 목록을 반환한다.
|
||||
이 명령은 ControllerRevision의 목록을 반환한다.
|
||||
|
||||
```shell
|
||||
```
|
||||
NAME CONTROLLER REVISION AGE
|
||||
<daemonset-name>-<revision-hash> DaemonSet/<daemonset-name> 1 1h
|
||||
<daemonset-name>-<revision-hash> DaemonSet/<daemonset-name> 2 1h
|
||||
```
|
||||
|
||||
각 `ControllerRevision` 은 데몬셋 리비전의 어노테이션과 템플릿을
|
||||
저장한다. ControllerRevision 오브젝트의 이름은 유효한
|
||||
[DNS 서브도메인 이름](/ko/docs/concepts/overview/working-with-objects/names/#dns-서브도메인-이름)이어야 한다.
|
||||
각 ControllerRevision은 데몬셋 리비전의 어노테이션과 템플릿을
|
||||
저장한다.
|
||||
|
||||
`kubectl rollout undo` 는 특정 `ControllerRevision` 을 가져와 데몬셋
|
||||
템플릿을 `ControllerRevision` 에 저장된 템플릿으로 바꾼다.
|
||||
`kubectl rollout undo` 는 특정 ControllerRevision을 가져와 데몬셋
|
||||
템플릿을 ControllerRevision에 저장된 템플릿으로 바꾼다.
|
||||
`kubectl rollout undo` 는 `kubectl edit` 또는 `kubectl apply` 와 같은 다른 명령을 통해
|
||||
데몬셋 템플릿을 이전 리비전으로 업데이트하는 것과
|
||||
같다.
|
||||
|
||||
{{< note >}}
|
||||
데몬셋 리비전은 롤 포워드만 한다. 즉, 롤백이
|
||||
완료된 후, 롤백될 `ControllerRevision` 의
|
||||
완료된 후, 롤백될 ControllerRevision의
|
||||
리비전 번호(`.revision` 필드)가 증가한다. 예를 들어,
|
||||
시스템에 리비전 1과 2가 있고, 리비전 2에서 리비전 1으로 롤백하면,
|
||||
`ControllerRevision` 은 `.revision: 1` 에서 `.revision: 3` 이 된다.
|
||||
ControllerRevision은 `.revision: 1` 에서 `.revision: 3` 이 된다.
|
||||
{{< /note >}}
|
||||
|
||||
## 문제 해결
|
||||
@@ -157,4 +148,3 @@ NAME CONTROLLER REVISION AGE
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user