From 1934b9be518102efacc1b8c688a40707d1b179bc Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Wed, 11 Sep 2019 13:08:32 +0900 Subject: [PATCH 01/30] Translate concepts/services-networking/dns-pod-service in Korean --- .../concepts/services-networking/_index.md | 4 + .../services-networking/dns-pod-service.md | 232 ++++++++++++++++++ .../service/networking/custom-dns.yaml | 20 ++ 3 files changed, 256 insertions(+) create mode 100644 content/ko/docs/concepts/services-networking/_index.md create mode 100644 content/ko/docs/concepts/services-networking/dns-pod-service.md create mode 100644 content/ko/examples/service/networking/custom-dns.yaml diff --git a/content/ko/docs/concepts/services-networking/_index.md b/content/ko/docs/concepts/services-networking/_index.md new file mode 100644 index 0000000000000..101f141102572 --- /dev/null +++ b/content/ko/docs/concepts/services-networking/_index.md @@ -0,0 +1,4 @@ +--- +title: "서비스, 로드밸런싱, 네트워킹" +weight: 60 +--- diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md new file mode 100644 index 0000000000000..f21580db6c9f0 --- /dev/null +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -0,0 +1,232 @@ +--- +title: 서비스 및 파드용 DNS +content_template: templates/concept +weight: 20 +--- +{{% capture overview %}} +이 페이지는 쿠버네티스가 지원하는 DNS 개요에 관해 설명한다. +{{% /capture %}} + +{{% capture body %}} + +## 소개 +쿠버네티스 DNS는 클러스터의 서비스와 DNS 파드를 관리하며, 개별 컨테이너들이 DNS 네임을 해석할 때 DNS +서비스의 IP를 응답하도록 kubelets를 구성한다. + +### DNS 네임이 할당되는 것들 + +클러스터 내의 DNS 서버를 포함한 모든 서비스는 DNS 네임이 할당된다. 기본적으로 클라이언트 파드의 DNS 검색 +리스트는 파드 자체의 네임스페이스와 클러스터의 기본 도메인을 포함한다. 이 예시는 다음과 같다: + +쿠버네티스 네임스페이스 `bar`에 `foo`라는 서비스가 있다. 네임스페이스 `bar`에서 running 상태인 파드는 +단순하게 `foo`를 조회하는 DNS 쿼리를 통해서 서비스 `foo`를 찾을 수 있다. +네임스페이스 `quux`에서 실행 중인 파드는 `foo.bar`를 조회하는 DNS 쿼리를 통해서 이 서비스를 찾을 수 있다. + +다음 절에서는 쿠버네티스 DNS에서 지원하는 레코드 유형과 레이아웃을 자세히 설명한다. 이 외에 동작하는 레이아웃, +네임 또는 쿼리는 구현 세부 정보로 간주하며 경고 없이 변경될 수 있다. 최신 업데이트에 대한 자세한 설명은 다음 +링크를 통해 참조할 수 있다. +[쿠버네티스 DNS 기반 서비스 디스커버리](https://github.com/kubernetes/dns/blob/master/docs/specification.md). + +## DNS 기반 서비스 + +### A 레코드 + +헤드리스 서비스가 아닌 "노멀" 서비스는 `my-svc.my-namespace.svc.cluster-domain.example` +형식의 이름을 가진 DNS A 레코드가 할당된다. 이는 서비스의 클러스터 IP로 해석된다. + +클러스터 IP가 없는 "헤드리스" 서비스 또한 `my-svc.my-namespace.svc.cluster-domain.example` +형식의 이름을 가진 DNS A 레코드가 할당된다. 노멀 서비스와는 다르게 이는 서비스에 의해 선택된 파드들의 IP 집합으로 해석된다. +클라이언트는 해석된 IP 집합에서 IP를 직접 선택하거나 표준 라운드로빈을 통해 선택할 수 있다. + +### SRV 레코드 + +SRV 레코드는 노멀 서비스 또는 [헤드리스 서비스](/docs/concepts/services-networking/service/#headless-services)에 +속하는 네임드 포트를 위해 만들어졌다. 각각의 네임드 포트에 대해서 SRV 레코드는 다음과 같은 형식을 가질 수 있다. `_my-port-name._my-port-protocol.my-svc.my-namespace.svc.cluster-domain.example`. +정규 서비스의 경우, 이는 포트 번호와 도메인 네임으로 해석된다: `my-svc.my-namespace.svc.cluster-domain.example`. +헤드리스 서비스의 경우, 서비스를 지원하는 각 파드에 대해 하나씩 복수 응답으로 해석되며 이 응답은 파드의 포트 번호와 도메인 이름을 포함한다: `auto-generated-name.my-svc.my-namespace.svc.cluster-domain.example`. + + +## 파드 + +### 파드의 호스트네임 필드와 서브도메인 필드 + +파드가 생성되면 호스트네임은 해당 파드의 `metadata.name` 값이 된다. +파드 스펙(Pod spec)에는 선택적 필드인 `hostname`이 있다. 이 필드는 파드의 호스트네임을 지정할 수 있다. +파드의 이름이 지정되면 파드의 이름보다 파드의 호스트네임이 우선시된다. 예를 들어 `hostname` 필드가 +"`my-host`"로 설정된 파드는 호스트네임이 "`my-host`"로 설정된다. + +또한, 파드 스펙(Pod spec)에는 선택적 필드인 `subdomain`이 있다. 이 필드는 서브도메인을 지정할 수 있다. +예를 들어 "`my-namespace`" 네임스페이스에서, `hostname` 필드가 "`foo`"로 설정되고, `subdomain` +필드가 "`bar`"로 설정된 파드는 전체 주소 도메인 네임 (FQDN)을 가지게 된다: "`foo.bar.my-namespace.svc.cluster-domain.example`". + +예시: + +```yaml +apiVersion: v1 +kind: Service +metadata: + name: default-subdomain +spec: + selector: + name: busybox + clusterIP: None + ports: + - name: foo # Actually, no port is needed. + port: 1234 + targetPort: 1234 +--- +apiVersion: v1 +kind: Pod +metadata: + name: busybox1 + labels: + name: busybox +spec: + hostname: busybox-1 + subdomain: default-subdomain + containers: + - image: busybox:1.28 + command: + - sleep + - "3600" + name: busybox +--- +apiVersion: v1 +kind: Pod +metadata: + name: busybox2 + labels: + name: busybox +spec: + hostname: busybox-2 + subdomain: default-subdomain + containers: + - image: busybox:1.28 + command: + - sleep + - "3600" + name: busybox +``` +파드와 동일한 네임스페이스 내에 같은 서브도메인 이름을 가진 헤드리스 서비스가 있다면, 클러스터의 KubeDNS +서버는 파드의 전체 주소 호스트네임(fully qualified hostname)인 A 레코드를 반환한다. +예를 들어 호스트네임이 "`busybox-1`"이고, 서브도메인이 "`default-subdomain`"이고, +같은 네임스페이스 내 헤드리스 서비스의 이름이 "`default-subdomain`"이면, 파드는 다음과 같이 자기 자신의 +FQDN을 얻게 된다: "`busybox-1.default-subdomain.my-namespace.svc.cluster-domain.example`". +DNS는 위 FQDN에 대해 파드의 IP를 가리키는 A 레코드를 제공한다. "`busybox1`"와 "`busybox2`" 파드 모두 +각 파드를 구분 가능한 A 레코드를 가지고 있다. + +엔드포인트 객체는 `hostname` 필드를 임의의 엔드포인트 IP 주소로 지정할 수 있다. + +{{< note >}} +A 레코드는 파드의 이름으로 생성되지 않기 때문에 파드의 A 레코드를 생성하기 위해서는 `hostname` 필드를 작성해야 한다. +`hostname` 필드는 없고 `subdomain` 필드만 있는 파드는 파드의 IP 주소를 가리키는 헤드리스 서비스의 +A 레코드만 생성할 수 있다. (`default-subdomain.my-namespace.svc.cluster-domain.example`) +또한 레코드를 가지기 위해서는 파드가 준비되어야 한다. 그렇지 않은 경우, 서비스에서 `publishNotReadyAddresses=True`가 활성화된다. +{{< /note >}} + +### 파드의 DNS 정책 + +DNS 정책은 파드 별로 설정할 수 있다. 현재 쿠버네티스는 다음과 같은 파드별 DNS 정책을 지원한다. +이 정책들은 파드 스펙(Pod Spec)의 `dnsPolicy` 필드에서 지정할 수 있다. + +- "`Default`": 파드는 파드가 실행되고 있는 노드로부터 name resolution 설정을 상속받는다. + 자세한 내용은 [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node) + 에서 확인할 수 있다. +- "`ClusterFirst`": "`www.kubernetes.io`"와 같이 클러스터 도메인 suffix 구성과 일치하지 + 않는 DNS 쿼리는 노드에서 상속된 업스트림 네임서버로 전달된다. 클러스터 관리자는 추가 스텁 도메인과 + 업스트림 DNS 서버를 구축할 수 있다. 그러한 경우 DNS 쿼리를 어떻게 처리하는지에 대한 자세한 내용은 [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers/#impacts-on-pods) + 에서 확인할 수 있다. +- "`ClusterFirstWithHostNet`": hostNetwork에서 running 상태인 파드의 경우 DNS 정책인 + "`ClusterFirstWithHostNet`"을 명시적으로 설정해야 한다. +- "`None`": 이 정책은 파드가 쿠버네티스 환경의 DNS 설정을 무시하도록 한다. 모든 DNS 설정은 파드 스펙(Pod Spec) + 내에 `dnsConfig`필드를 사용하여 제공해야 한다. + 아래 절인 [파드의 DNS 설정](#파드의-dns-설정)에서 자세한 내용을 확인할 수 있다. + +{{< note >}} +"Default"는 기본 DNS 정책이 아니다. `dnsPolicy`가 명시적으로 지정되어있지 않다면 +“ClusterFirst”가 기본값으로 사용된다. +{{< /note >}} + +아래 예시는 `hostNetwork`필드가 `true`로 설정되어 있어서 +DNS 정책이 "`ClusterFirstWithHostNet`"으로 설정된 파드를 보여준다. + +```yaml +apiVersion: v1 +kind: Pod +metadata: + name: busybox + namespace: default +spec: + containers: + - image: busybox:1.28 + command: + - sleep + - "3600" + imagePullPolicy: IfNotPresent + name: busybox + restartPolicy: Always + hostNetwork: true + dnsPolicy: ClusterFirstWithHostNet +``` + +### 파드의 DNS 설정 + +사용자들은 파드의 DNS 설정을 통해서 직접 파드의 DNS를 세팅할 수 있다. + +`dnsConfig` 필드는 선택적이고, `dnsPolicy` 세팅과 함께 동작한다. 이때, +파드의 `dnsPolicy`의 값이 "`None`"으로 설정되어 있어야 `dnsConfig` 필드를 지정할 수 있다. + +사용자는 `dnsConfig` 필드에서 다음과 같은 속성들을 지정할 수 있다: + +- `nameservers`: 파드의 DNS 서버가 사용할 IP 주소들의 목록이다. 파드의 `dnsPolicy`가 "`None`" 으로 + 설정된 경우에는 적어도 하나의 IP 주소가 포함되어야 하며, 그렇지 않으면 이 속성은 생략할 수 있다. + `nameservers`에 나열된 서버는 지정된 DNS 정책을 통해 생성된 기본 네임 서버와 합쳐지며 중복되는 주소는 제거된다. +- `searches`: 파드의 호스트네임을 찾기 위한 DNS 검색 도메인의 목록이다. 이 속성은 생략이 가능하며, + 값을 지정한 경우 나열된 검색 도메인은 지정된 DNS 정책을 통해 생성된 기본 검색 도메인에 합쳐진다. + 병합 시 중복되는 도메인은 제거되며, 쿠버네티스는 최대 6개의 검색 도메인을 허용하고 있다. +- `options`: `name` 속성(필수)과 `value` 속성(선택)을 가질 수 있는 객체들의 선택적 목록이다. + 이 속성의 내용은 지정된 DNS 정책에서 생성된 옵션으로 병합된다. 이 속성의 내용은 지정된 DNS 정책을 + 통해 생성된 옵션으로 합쳐지며, 병합 시 중복되는 항목은 제거된다. + +다음은 커스텀 DNS 세팅을 한 파드의 예시이다: + +{{< codenew file="service/networking/custom-dns.yaml" >}} + +위에서 파드가 생성되면, 컨테이너 `test`의 `/etc/resolv.conf` 파일에는 다음과 같은 내용이 추가된다. + +``` +nameserver 1.2.3.4 +search ns1.svc.cluster-domain.example my.dns.search.suffix +options ndots:2 edns0 +``` +IPv6 셋업을 위해서 검색 경로와 네임 서버 셋업은 다음과 같아야 한다: + +```shell +kubectl exec -it dns-example -- cat /etc/resolv.conf +``` +출력은 다음과 같은 형식일 것이다: +```shell +nameserver fd00:79:30::a +search default.svc.cluster-domain.example svc.cluster-domain.example cluster-domain.example +options ndots:5 +``` + +### 기능 지원 여부 + +파드 DNS 구성 및 DNS 정책 "`None`"에 대한 지원 정보는 아래에서 확인 할 수 있다. + +| k8s 버전 | 기능 지원 | +| :---------: |:-----------:| +| 1.14 | 안정 | +| 1.10 | 베타 (기본)| +| 1.9 | 알파 | + +{{% /capture %}} + +{{% capture whatsnext %}} + +DNS 구성 관리에 대한 지침은 [Configure DNS Service](/docs/tasks/administer-cluster/dns-custom-nameservers/)에서 확인 할 수 있다. + +{{% /capture %}} + + diff --git a/content/ko/examples/service/networking/custom-dns.yaml b/content/ko/examples/service/networking/custom-dns.yaml new file mode 100644 index 0000000000000..02f77a9efe09d --- /dev/null +++ b/content/ko/examples/service/networking/custom-dns.yaml @@ -0,0 +1,20 @@ +apiVersion: v1 +kind: Pod +metadata: + namespace: default + name: dns-example +spec: + containers: + - name: test + image: nginx + dnsPolicy: "None" + dnsConfig: + nameservers: + - 1.2.3.4 + searches: + - ns1.svc.cluster-domain.example + - my.dns.search.suffix + options: + - name: ndots + value: "2" + - name: edns0 From 14e061a0573024ae525043b1bd06d3a9a67e129b Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:20:01 +0900 Subject: [PATCH 02/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index f21580db6c9f0..81d29ca726b4e 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -4,7 +4,7 @@ content_template: templates/concept weight: 20 --- {{% capture overview %}} -이 페이지는 쿠버네티스가 지원하는 DNS 개요에 관해 설명한다. +이 페이지는 쿠버네티스의 DNS 지원에 대한 개요를 설명한다. {{% /capture %}} {{% capture body %}} From 6ab6b479261e984ccb36797b9a87a59e9c5f1748 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:20:29 +0900 Subject: [PATCH 03/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 81d29ca726b4e..2fb11c102ac2d 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -11,7 +11,7 @@ weight: 20 ## 소개 쿠버네티스 DNS는 클러스터의 서비스와 DNS 파드를 관리하며, 개별 컨테이너들이 DNS 네임을 해석할 때 DNS -서비스의 IP를 응답하도록 kubelets를 구성한다. +서비스의 IP를 사용하도록 kubelets를 구성한다. ### DNS 네임이 할당되는 것들 From 703379e5852311951da5862368b84a55ddc36e35 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:20:39 +0900 Subject: [PATCH 04/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 2fb11c102ac2d..4dccf2cbf5369 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -15,7 +15,7 @@ weight: 20 ### DNS 네임이 할당되는 것들 -클러스터 내의 DNS 서버를 포함한 모든 서비스는 DNS 네임이 할당된다. 기본적으로 클라이언트 파드의 DNS 검색 +클러스터 내의 모든 서비스(DNS 서버 자신도 포함하여)에는 DNS 네임이 할당된다. 기본적으로 클라이언트 파드의 DNS 검색 리스트는 파드 자체의 네임스페이스와 클러스터의 기본 도메인을 포함한다. 이 예시는 다음과 같다: 쿠버네티스 네임스페이스 `bar`에 `foo`라는 서비스가 있다. 네임스페이스 `bar`에서 running 상태인 파드는 From 774eb5a6250362ebb7ce1c3be14453d33590c82e Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:21:32 +0900 Subject: [PATCH 05/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 4dccf2cbf5369..f70083a541567 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -27,7 +27,7 @@ weight: 20 링크를 통해 참조할 수 있다. [쿠버네티스 DNS 기반 서비스 디스커버리](https://github.com/kubernetes/dns/blob/master/docs/specification.md). -## DNS 기반 서비스 +## 서비스 ### A 레코드 From 6567653259369b9459d5afa9dc9c09b54c6562b6 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:21:48 +0900 Subject: [PATCH 06/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index f70083a541567..5d59da710fe43 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -31,7 +31,7 @@ weight: 20 ### A 레코드 -헤드리스 서비스가 아닌 "노멀" 서비스는 `my-svc.my-namespace.svc.cluster-domain.example` +"노멀"(헤드리스가 아닌) 서비스는 `my-svc.my-namespace.svc.cluster-domain.example` 형식의 이름을 가진 DNS A 레코드가 할당된다. 이는 서비스의 클러스터 IP로 해석된다. 클러스터 IP가 없는 "헤드리스" 서비스 또한 `my-svc.my-namespace.svc.cluster-domain.example` From d4ad1c5dae24c6d3ca7d3a893176e9be0a5510fa Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:22:06 +0900 Subject: [PATCH 07/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 5d59da710fe43..70af802c5f44d 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -34,7 +34,7 @@ weight: 20 "노멀"(헤드리스가 아닌) 서비스는 `my-svc.my-namespace.svc.cluster-domain.example` 형식의 이름을 가진 DNS A 레코드가 할당된다. 이는 서비스의 클러스터 IP로 해석된다. -클러스터 IP가 없는 "헤드리스" 서비스 또한 `my-svc.my-namespace.svc.cluster-domain.example` +"헤드리스"(클러스터 IP가 없는) 서비스 또한 `my-svc.my-namespace.svc.cluster-domain.example` 형식의 이름을 가진 DNS A 레코드가 할당된다. 노멀 서비스와는 다르게 이는 서비스에 의해 선택된 파드들의 IP 집합으로 해석된다. 클라이언트는 해석된 IP 집합에서 IP를 직접 선택하거나 표준 라운드로빈을 통해 선택할 수 있다. From 83daa72bef8713f2fedd5825beeda864e6bf2131 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:22:34 +0900 Subject: [PATCH 08/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 70af802c5f44d..b2eea2f09e5a1 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -48,7 +48,7 @@ SRV 레코드는 노멀 서비스 또는 [헤드리스 서비스](/docs/concepts ## 파드 -### 파드의 호스트네임 필드와 서브도메인 필드 +### 파드의 hostname 및 subdomain 필드 파드가 생성되면 호스트네임은 해당 파드의 `metadata.name` 값이 된다. 파드 스펙(Pod spec)에는 선택적 필드인 `hostname`이 있다. 이 필드는 파드의 호스트네임을 지정할 수 있다. From 12eba37ee6790a4ca585f61f19e61273a42a07dc Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:22:52 +0900 Subject: [PATCH 09/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index b2eea2f09e5a1..d180e21b0197b 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -50,7 +50,7 @@ SRV 레코드는 노멀 서비스 또는 [헤드리스 서비스](/docs/concepts ### 파드의 hostname 및 subdomain 필드 -파드가 생성되면 호스트네임은 해당 파드의 `metadata.name` 값이 된다. +파드가 생성되면 hostname은 해당 파드의 `metadata.name` 값이 된다. 파드 스펙(Pod spec)에는 선택적 필드인 `hostname`이 있다. 이 필드는 파드의 호스트네임을 지정할 수 있다. 파드의 이름이 지정되면 파드의 이름보다 파드의 호스트네임이 우선시된다. 예를 들어 `hostname` 필드가 "`my-host`"로 설정된 파드는 호스트네임이 "`my-host`"로 설정된다. From 54c39eb4d5affc564ef81131019e33a94760c978 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:23:10 +0900 Subject: [PATCH 10/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index d180e21b0197b..a3d97faf7db5d 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -225,7 +225,7 @@ options ndots:5 {{% capture whatsnext %}} -DNS 구성 관리에 대한 지침은 [Configure DNS Service](/docs/tasks/administer-cluster/dns-custom-nameservers/)에서 확인 할 수 있다. +DNS 구성 관리에 대한 지침은 [DNS 서비스 구성](/docs/tasks/administer-cluster/dns-custom-nameservers/)에서 확인 할 수 있다. {{% /capture %}} From c645c2c1ea3391c3ae151025298ae0190e6e15a1 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:23:19 +0900 Subject: [PATCH 11/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index a3d97faf7db5d..e3e3ad9b4a388 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -204,7 +204,7 @@ IPv6 셋업을 위해서 검색 경로와 네임 서버 셋업은 다음과 같 ```shell kubectl exec -it dns-example -- cat /etc/resolv.conf ``` -출력은 다음과 같은 형식일 것이다: +출력은 다음과 같은 형식일 것이다. ```shell nameserver fd00:79:30::a search default.svc.cluster-domain.example svc.cluster-domain.example cluster-domain.example From d9686c7fc9ca6d605ec183d01b5e9a5435d0644b Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:23:27 +0900 Subject: [PATCH 12/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index e3e3ad9b4a388..8a8b425390ead 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -188,7 +188,7 @@ spec: 이 속성의 내용은 지정된 DNS 정책에서 생성된 옵션으로 병합된다. 이 속성의 내용은 지정된 DNS 정책을 통해 생성된 옵션으로 합쳐지며, 병합 시 중복되는 항목은 제거된다. -다음은 커스텀 DNS 세팅을 한 파드의 예시이다: +다음은 커스텀 DNS 세팅을 한 파드의 예시이다. {{< codenew file="service/networking/custom-dns.yaml" >}} From c7d240f761b980983a3bb1323de69338f1b968d8 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:23:35 +0900 Subject: [PATCH 13/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 8a8b425390ead..b40eca3114f6a 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -176,7 +176,7 @@ spec: `dnsConfig` 필드는 선택적이고, `dnsPolicy` 세팅과 함께 동작한다. 이때, 파드의 `dnsPolicy`의 값이 "`None`"으로 설정되어 있어야 `dnsConfig` 필드를 지정할 수 있다. -사용자는 `dnsConfig` 필드에서 다음과 같은 속성들을 지정할 수 있다: +사용자는 `dnsConfig` 필드에서 다음과 같은 속성들을 지정할 수 있다. - `nameservers`: 파드의 DNS 서버가 사용할 IP 주소들의 목록이다. 파드의 `dnsPolicy`가 "`None`" 으로 설정된 경우에는 적어도 하나의 IP 주소가 포함되어야 하며, 그렇지 않으면 이 속성은 생략할 수 있다. From 01168dd9b4e5035884c7da772e17ee6fd64e19a7 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:23:50 +0900 Subject: [PATCH 14/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index b40eca3114f6a..6aad68624cb3c 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -138,7 +138,7 @@ DNS 정책은 파드 별로 설정할 수 있다. 현재 쿠버네티스는 다 에서 확인할 수 있다. - "`ClusterFirstWithHostNet`": hostNetwork에서 running 상태인 파드의 경우 DNS 정책인 "`ClusterFirstWithHostNet`"을 명시적으로 설정해야 한다. -- "`None`": 이 정책은 파드가 쿠버네티스 환경의 DNS 설정을 무시하도록 한다. 모든 DNS 설정은 파드 스펙(Pod Spec) +- "`None`": 이 정책은 파드가 쿠버네티스 환경의 DNS 설정을 무시하도록 한다. 모든 DNS 설정은 파드 스펙 내에 `dnsConfig`필드를 사용하여 제공해야 한다. 아래 절인 [파드의 DNS 설정](#파드의-dns-설정)에서 자세한 내용을 확인할 수 있다. From 5b4b59f678c34f95a305c4c7b1958f1df5a08e59 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:24:01 +0900 Subject: [PATCH 15/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 6aad68624cb3c..9f3908ca2c5ba 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -42,7 +42,7 @@ weight: 20 SRV 레코드는 노멀 서비스 또는 [헤드리스 서비스](/docs/concepts/services-networking/service/#headless-services)에 속하는 네임드 포트를 위해 만들어졌다. 각각의 네임드 포트에 대해서 SRV 레코드는 다음과 같은 형식을 가질 수 있다. `_my-port-name._my-port-protocol.my-svc.my-namespace.svc.cluster-domain.example`. -정규 서비스의 경우, 이는 포트 번호와 도메인 네임으로 해석된다: `my-svc.my-namespace.svc.cluster-domain.example`. +정규 서비스의 경우, 이는 포트 번호와 도메인 네임으로 해석된다. `my-svc.my-namespace.svc.cluster-domain.example`. 헤드리스 서비스의 경우, 서비스를 지원하는 각 파드에 대해 하나씩 복수 응답으로 해석되며 이 응답은 파드의 포트 번호와 도메인 이름을 포함한다: `auto-generated-name.my-svc.my-namespace.svc.cluster-domain.example`. From d02dfcfa554ad7a340893782051321acf107e654 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:24:15 +0900 Subject: [PATCH 16/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 9f3908ca2c5ba..17388a52a9bfc 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -43,7 +43,7 @@ weight: 20 SRV 레코드는 노멀 서비스 또는 [헤드리스 서비스](/docs/concepts/services-networking/service/#headless-services)에 속하는 네임드 포트를 위해 만들어졌다. 각각의 네임드 포트에 대해서 SRV 레코드는 다음과 같은 형식을 가질 수 있다. `_my-port-name._my-port-protocol.my-svc.my-namespace.svc.cluster-domain.example`. 정규 서비스의 경우, 이는 포트 번호와 도메인 네임으로 해석된다. `my-svc.my-namespace.svc.cluster-domain.example`. -헤드리스 서비스의 경우, 서비스를 지원하는 각 파드에 대해 하나씩 복수 응답으로 해석되며 이 응답은 파드의 포트 번호와 도메인 이름을 포함한다: `auto-generated-name.my-svc.my-namespace.svc.cluster-domain.example`. +헤드리스 서비스의 경우, 서비스를 지원하는 각 파드에 대해 하나씩 복수 응답으로 해석되며 이 응답은 파드의 포트 번호와 도메인 이름을 포함한다. `auto-generated-name.my-svc.my-namespace.svc.cluster-domain.example`. ## 파드 From c5b17df47331d709a702b9ed649783940a4d25b5 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:25:04 +0900 Subject: [PATCH 17/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 17388a52a9bfc..4bac07a11313a 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -52,7 +52,7 @@ SRV 레코드는 노멀 서비스 또는 [헤드리스 서비스](/docs/concepts 파드가 생성되면 hostname은 해당 파드의 `metadata.name` 값이 된다. 파드 스펙(Pod spec)에는 선택적 필드인 `hostname`이 있다. 이 필드는 파드의 호스트네임을 지정할 수 있다. -파드의 이름이 지정되면 파드의 이름보다 파드의 호스트네임이 우선시된다. 예를 들어 `hostname` 필드가 +`hostname` 필드가 지정되면, 파드의 이름보다 파드의 호스트네임이 우선시된다. 예를 들어 `hostname` 필드가 "`my-host`"로 설정된 파드는 호스트네임이 "`my-host`"로 설정된다. 또한, 파드 스펙(Pod spec)에는 선택적 필드인 `subdomain`이 있다. 이 필드는 서브도메인을 지정할 수 있다. From 62c6ccc1699dee07369a5ffe482b7c0a29d464fd Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:25:25 +0900 Subject: [PATCH 18/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 4bac07a11313a..027c5a2fb7927 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -55,7 +55,7 @@ SRV 레코드는 노멀 서비스 또는 [헤드리스 서비스](/docs/concepts `hostname` 필드가 지정되면, 파드의 이름보다 파드의 호스트네임이 우선시된다. 예를 들어 `hostname` 필드가 "`my-host`"로 설정된 파드는 호스트네임이 "`my-host`"로 설정된다. -또한, 파드 스펙(Pod spec)에는 선택적 필드인 `subdomain`이 있다. 이 필드는 서브도메인을 지정할 수 있다. +또한, 파드 스펙에는 선택적 필드인 `subdomain`이 있다. 이 필드는 서브도메인을 지정할 수 있다. 예를 들어 "`my-namespace`" 네임스페이스에서, `hostname` 필드가 "`foo`"로 설정되고, `subdomain` 필드가 "`bar`"로 설정된 파드는 전체 주소 도메인 네임 (FQDN)을 가지게 된다: "`foo.bar.my-namespace.svc.cluster-domain.example`". From 3bd05230a8045bd3a9814ff9192030c374fe98a4 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:25:45 +0900 Subject: [PATCH 19/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 027c5a2fb7927..beb2d0477c6d2 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -57,7 +57,7 @@ SRV 레코드는 노멀 서비스 또는 [헤드리스 서비스](/docs/concepts 또한, 파드 스펙에는 선택적 필드인 `subdomain`이 있다. 이 필드는 서브도메인을 지정할 수 있다. 예를 들어 "`my-namespace`" 네임스페이스에서, `hostname` 필드가 "`foo`"로 설정되고, `subdomain` -필드가 "`bar`"로 설정된 파드는 전체 주소 도메인 네임 (FQDN)을 가지게 된다: "`foo.bar.my-namespace.svc.cluster-domain.example`". +필드가 "`bar`"로 설정된 파드는 전체 주소 도메인 네임(FQDN)을 가지게 된다. "`foo.bar.my-namespace.svc.cluster-domain.example`". 예시: From 62dca3442a0489d6af34248c5425f9ce4f090478 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:26:13 +0900 Subject: [PATCH 20/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index beb2d0477c6d2..b0ce6f5db957d 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -111,7 +111,7 @@ spec: 서버는 파드의 전체 주소 호스트네임(fully qualified hostname)인 A 레코드를 반환한다. 예를 들어 호스트네임이 "`busybox-1`"이고, 서브도메인이 "`default-subdomain`"이고, 같은 네임스페이스 내 헤드리스 서비스의 이름이 "`default-subdomain`"이면, 파드는 다음과 같이 자기 자신의 -FQDN을 얻게 된다: "`busybox-1.default-subdomain.my-namespace.svc.cluster-domain.example`". +FQDN을 얻게 된다. "`busybox-1.default-subdomain.my-namespace.svc.cluster-domain.example`". DNS는 위 FQDN에 대해 파드의 IP를 가리키는 A 레코드를 제공한다. "`busybox1`"와 "`busybox2`" 파드 모두 각 파드를 구분 가능한 A 레코드를 가지고 있다. From be309f7ce18566d0c1207a49709777e8d22cf7a1 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:26:34 +0900 Subject: [PATCH 21/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index b0ce6f5db957d..1fa7b7e9d6192 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -16,7 +16,7 @@ weight: 20 ### DNS 네임이 할당되는 것들 클러스터 내의 모든 서비스(DNS 서버 자신도 포함하여)에는 DNS 네임이 할당된다. 기본적으로 클라이언트 파드의 DNS 검색 -리스트는 파드 자체의 네임스페이스와 클러스터의 기본 도메인을 포함한다. 이 예시는 다음과 같다: +리스트는 파드 자체의 네임스페이스와 클러스터의 기본 도메인을 포함한다. 이 예시는 다음과 같다. 쿠버네티스 네임스페이스 `bar`에 `foo`라는 서비스가 있다. 네임스페이스 `bar`에서 running 상태인 파드는 단순하게 `foo`를 조회하는 DNS 쿼리를 통해서 서비스 `foo`를 찾을 수 있다. From 7f7f9b8d601d2b3c02c27100ec69b728ac81f4a6 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:26:50 +0900 Subject: [PATCH 22/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 1fa7b7e9d6192..dcc3c3e0ffd5f 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -126,7 +126,7 @@ A 레코드만 생성할 수 있다. (`default-subdomain.my-namespace.svc.cluste ### 파드의 DNS 정책 -DNS 정책은 파드 별로 설정할 수 있다. 현재 쿠버네티스는 다음과 같은 파드별 DNS 정책을 지원한다. +DNS 정책은 파드별로 설정할 수 있다. 현재 쿠버네티스는 다음과 같은 파드별 DNS 정책을 지원한다. 이 정책들은 파드 스펙(Pod Spec)의 `dnsPolicy` 필드에서 지정할 수 있다. - "`Default`": 파드는 파드가 실행되고 있는 노드로부터 name resolution 설정을 상속받는다. From 9210dacbf6feb4a298ceb6391ea9b66be3388695 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:27:04 +0900 Subject: [PATCH 23/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index dcc3c3e0ffd5f..aad0caae58225 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -127,7 +127,7 @@ A 레코드만 생성할 수 있다. (`default-subdomain.my-namespace.svc.cluste ### 파드의 DNS 정책 DNS 정책은 파드별로 설정할 수 있다. 현재 쿠버네티스는 다음과 같은 파드별 DNS 정책을 지원한다. -이 정책들은 파드 스펙(Pod Spec)의 `dnsPolicy` 필드에서 지정할 수 있다. +이 정책들은 파드 스펙의 `dnsPolicy` 필드에서 지정할 수 있다. - "`Default`": 파드는 파드가 실행되고 있는 노드로부터 name resolution 설정을 상속받는다. 자세한 내용은 [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node) From 7099e84cf9e550ad2b722b26c46c7ef3dd877222 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:27:19 +0900 Subject: [PATCH 24/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index aad0caae58225..ea50d5bdbf598 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -130,7 +130,7 @@ DNS 정책은 파드별로 설정할 수 있다. 현재 쿠버네티스는 다 이 정책들은 파드 스펙의 `dnsPolicy` 필드에서 지정할 수 있다. - "`Default`": 파드는 파드가 실행되고 있는 노드로부터 name resolution 설정을 상속받는다. - 자세한 내용은 [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node) + 자세한 내용은 [관련 논의](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node) 에서 확인할 수 있다. - "`ClusterFirst`": "`www.kubernetes.io`"와 같이 클러스터 도메인 suffix 구성과 일치하지 않는 DNS 쿼리는 노드에서 상속된 업스트림 네임서버로 전달된다. 클러스터 관리자는 추가 스텁 도메인과 From 89967cdca41f742a0d5d933528aa47a6f2537178 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:27:57 +0900 Subject: [PATCH 25/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index ea50d5bdbf598..8e33d325a765b 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -133,7 +133,7 @@ DNS 정책은 파드별로 설정할 수 있다. 현재 쿠버네티스는 다 자세한 내용은 [관련 논의](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node) 에서 확인할 수 있다. - "`ClusterFirst`": "`www.kubernetes.io`"와 같이 클러스터 도메인 suffix 구성과 일치하지 - 않는 DNS 쿼리는 노드에서 상속된 업스트림 네임서버로 전달된다. 클러스터 관리자는 추가 스텁 도메인과 + 않는 DNS 쿼리는 노드에서 상속된 업스트림 네임서버로 전달된다. 클러스터 관리자는 추가 스텁-도메인(stub-domain)과 업스트림 DNS 서버를 구축할 수 있다. 그러한 경우 DNS 쿼리를 어떻게 처리하는지에 대한 자세한 내용은 [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers/#impacts-on-pods) 에서 확인할 수 있다. - "`ClusterFirstWithHostNet`": hostNetwork에서 running 상태인 파드의 경우 DNS 정책인 From d99638c9aab2bc67b35e4790cbc08c7808224ae8 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:28:15 +0900 Subject: [PATCH 26/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 8e33d325a765b..46d5f1fc6eedc 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -134,7 +134,7 @@ DNS 정책은 파드별로 설정할 수 있다. 현재 쿠버네티스는 다 에서 확인할 수 있다. - "`ClusterFirst`": "`www.kubernetes.io`"와 같이 클러스터 도메인 suffix 구성과 일치하지 않는 DNS 쿼리는 노드에서 상속된 업스트림 네임서버로 전달된다. 클러스터 관리자는 추가 스텁-도메인(stub-domain)과 - 업스트림 DNS 서버를 구축할 수 있다. 그러한 경우 DNS 쿼리를 어떻게 처리하는지에 대한 자세한 내용은 [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers/#impacts-on-pods) + 업스트림 DNS 서버를 구축할 수 있다. 그러한 경우 DNS 쿼리를 어떻게 처리하는지에 대한 자세한 내용은 [관련 논의](/docs/tasks/administer-cluster/dns-custom-nameservers/#impacts-on-pods) 에서 확인할 수 있다. - "`ClusterFirstWithHostNet`": hostNetwork에서 running 상태인 파드의 경우 DNS 정책인 "`ClusterFirstWithHostNet`"을 명시적으로 설정해야 한다. From 0137b292e37d83f8257d88ee2f5a845ff10dd426 Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 04:33:29 +0900 Subject: [PATCH 27/30] Update content/ko/docs/concepts/services-networking/dns-pod-service.md Co-Authored-By: Seokho Son --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 46d5f1fc6eedc..31e3d7e52f55b 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -129,7 +129,7 @@ A 레코드만 생성할 수 있다. (`default-subdomain.my-namespace.svc.cluste DNS 정책은 파드별로 설정할 수 있다. 현재 쿠버네티스는 다음과 같은 파드별 DNS 정책을 지원한다. 이 정책들은 파드 스펙의 `dnsPolicy` 필드에서 지정할 수 있다. -- "`Default`": 파드는 파드가 실행되고 있는 노드로부터 name resolution 설정을 상속받는다. +- "`Default`": 파드는 파드가 실행되고 있는 노드로부터 네임 해석 설정(the name resolution configuration)을 상속받는다. 자세한 내용은 [관련 논의](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node) 에서 확인할 수 있다. - "`ClusterFirst`": "`www.kubernetes.io`"와 같이 클러스터 도메인 suffix 구성과 일치하지 From 7104c4bb21b1323c430f982d96c3be48bb2ca58f Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Wed, 11 Sep 2019 13:08:32 +0900 Subject: [PATCH 28/30] Translate concepts/services-networking/dns-pod-service in Korean(#15491) --- .../services-networking/dns-pod-service.md | 140 ++++++++++++------ 1 file changed, 93 insertions(+), 47 deletions(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 31e3d7e52f55b..92cb80d30fd2f 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -3,6 +3,9 @@ title: 서비스 및 파드용 DNS content_template: templates/concept weight: 20 --- + + + {{% capture overview %}} 이 페이지는 쿠버네티스의 DNS 지원에 대한 개요를 설명한다. {{% /capture %}} @@ -10,54 +13,70 @@ weight: 20 {{% capture body %}} ## 소개 -쿠버네티스 DNS는 클러스터의 서비스와 DNS 파드를 관리하며, 개별 컨테이너들이 DNS 네임을 해석할 때 DNS -서비스의 IP를 사용하도록 kubelets를 구성한다. + +쿠버네티스 DNS는 클러스터의 서비스와 DNS 파드를 관리하며, +개별 컨테이너들이 DNS 네임을 해석할 때 +DNS 서비스의 IP를 사용하도록 kubelets를 구성한다. ### DNS 네임이 할당되는 것들 -클러스터 내의 모든 서비스(DNS 서버 자신도 포함하여)에는 DNS 네임이 할당된다. 기본적으로 클라이언트 파드의 DNS 검색 -리스트는 파드 자체의 네임스페이스와 클러스터의 기본 도메인을 포함한다. 이 예시는 다음과 같다. +클러스터 내의 모든 서비스(DNS 서버 자신도 포함하여)에는 DNS 네임이 할당된다. +기본적으로 클라이언트 파드의 DNS 검색 리스트는 파드 자체의 네임스페이스와 +클러스터의 기본 도메인을 포함한다. +이 예시는 다음과 같다. 쿠버네티스 네임스페이스 `bar`에 `foo`라는 서비스가 있다. 네임스페이스 `bar`에서 running 상태인 파드는 단순하게 `foo`를 조회하는 DNS 쿼리를 통해서 서비스 `foo`를 찾을 수 있다. -네임스페이스 `quux`에서 실행 중인 파드는 `foo.bar`를 조회하는 DNS 쿼리를 통해서 이 서비스를 찾을 수 있다. +네임스페이스 `quux`에서 실행 중인 파드는 +`foo.bar`를 조회하는 DNS 쿼리를 통해서 이 서비스를 찾을 수 있다. + +다음 절에서는 쿠버네티스 DNS에서 지원하는 레코드 유형과 레이아웃을 자세히 설명한다. +이 외에 동작하는 레이아웃, 네임 또는 쿼리는 구현 세부 정보로 간주하며 경고 없이 변경될 수 있다. +최신 업데이트에 대한 자세한 설명은 다음 링크를 통해 참조할 수 있다. -다음 절에서는 쿠버네티스 DNS에서 지원하는 레코드 유형과 레이아웃을 자세히 설명한다. 이 외에 동작하는 레이아웃, -네임 또는 쿼리는 구현 세부 정보로 간주하며 경고 없이 변경될 수 있다. 최신 업데이트에 대한 자세한 설명은 다음 -링크를 통해 참조할 수 있다. [쿠버네티스 DNS 기반 서비스 디스커버리](https://github.com/kubernetes/dns/blob/master/docs/specification.md). ## 서비스 ### A 레코드 -"노멀"(헤드리스가 아닌) 서비스는 `my-svc.my-namespace.svc.cluster-domain.example` +"노멀"(헤드리스가 아닌) 서비스는 +`my-svc.my-namespace.svc.cluster-domain.example` 형식의 이름을 가진 DNS A 레코드가 할당된다. 이는 서비스의 클러스터 IP로 해석된다. -"헤드리스"(클러스터 IP가 없는) 서비스 또한 `my-svc.my-namespace.svc.cluster-domain.example` -형식의 이름을 가진 DNS A 레코드가 할당된다. 노멀 서비스와는 다르게 이는 서비스에 의해 선택된 파드들의 IP 집합으로 해석된다. +"헤드리스"(클러스터 IP가 없는) 서비스 또한 +`my-svc.my-namespace.svc.cluster-domain.example` +형식의 이름을 가진 DNS A 레코드가 할당된다. +노멀 서비스와는 다르게 이는 서비스에 의해 선택된 파드들의 IP 집합으로 해석된다. 클라이언트는 해석된 IP 집합에서 IP를 직접 선택하거나 표준 라운드로빈을 통해 선택할 수 있다. ### SRV 레코드 -SRV 레코드는 노멀 서비스 또는 [헤드리스 서비스](/docs/concepts/services-networking/service/#headless-services)에 -속하는 네임드 포트를 위해 만들어졌다. 각각의 네임드 포트에 대해서 SRV 레코드는 다음과 같은 형식을 가질 수 있다. `_my-port-name._my-port-protocol.my-svc.my-namespace.svc.cluster-domain.example`. -정규 서비스의 경우, 이는 포트 번호와 도메인 네임으로 해석된다. `my-svc.my-namespace.svc.cluster-domain.example`. -헤드리스 서비스의 경우, 서비스를 지원하는 각 파드에 대해 하나씩 복수 응답으로 해석되며 이 응답은 파드의 포트 번호와 도메인 이름을 포함한다. `auto-generated-name.my-svc.my-namespace.svc.cluster-domain.example`. - +SRV 레코드는 노멀 서비스 또는 +[헤드리스 서비스](/docs/concepts/services-networking/service/#headless-services)에 +속하는 네임드 포트를 위해 만들어졌다. 각각의 네임드 포트에 대해서 SRV 레코드는 다음과 같은 형식을 가질 수 있다. +`_my-port-name._my-port-protocol.my-svc.my-namespace.svc.cluster-domain.example`. +정규 서비스의 경우, 이는 포트 번호와 도메인 네임으로 해석된다. +`my-svc.my-namespace.svc.cluster-domain.example`. +헤드리스 서비스의 경우, 서비스를 지원하는 각 파드에 대해 하나씩 복수 응답으로 해석되며 이 응답은 파드의 +포트 번호와 도메인 이름을 포함한다. +`auto-generated-name.my-svc.my-namespace.svc.cluster-domain.example`. ## 파드 ### 파드의 hostname 및 subdomain 필드 파드가 생성되면 hostname은 해당 파드의 `metadata.name` 값이 된다. -파드 스펙(Pod spec)에는 선택적 필드인 `hostname`이 있다. 이 필드는 파드의 호스트네임을 지정할 수 있다. -`hostname` 필드가 지정되면, 파드의 이름보다 파드의 호스트네임이 우선시된다. 예를 들어 `hostname` 필드가 -"`my-host`"로 설정된 파드는 호스트네임이 "`my-host`"로 설정된다. + +파드 스펙(Pod spec)에는 선택적 필드인 `hostname`이 있다. +이 필드는 파드의 호스트네임을 지정할 수 있다. +`hostname` 필드가 지정되면, 파드의 이름보다 파드의 호스트네임이 우선시된다. +예를 들어 `hostname` 필드가 "`my-host`"로 설정된 파드는 호스트네임이 "`my-host`"로 설정된다. 또한, 파드 스펙에는 선택적 필드인 `subdomain`이 있다. 이 필드는 서브도메인을 지정할 수 있다. -예를 들어 "`my-namespace`" 네임스페이스에서, `hostname` 필드가 "`foo`"로 설정되고, `subdomain` -필드가 "`bar`"로 설정된 파드는 전체 주소 도메인 네임(FQDN)을 가지게 된다. "`foo.bar.my-namespace.svc.cluster-domain.example`". +예를 들어 "`my-namespace`" 네임스페이스에서, `hostname` 필드가 "`foo`"로 설정되고, +`subdomain` 필드가 "`bar`"로 설정된 파드는 전체 주소 도메인 네임(FQDN)을 가지게 된다. +"`foo.bar.my-namespace.svc.cluster-domain.example`". 예시: @@ -107,21 +126,27 @@ spec: - "3600" name: busybox ``` -파드와 동일한 네임스페이스 내에 같은 서브도메인 이름을 가진 헤드리스 서비스가 있다면, 클러스터의 KubeDNS -서버는 파드의 전체 주소 호스트네임(fully qualified hostname)인 A 레코드를 반환한다. -예를 들어 호스트네임이 "`busybox-1`"이고, 서브도메인이 "`default-subdomain`"이고, -같은 네임스페이스 내 헤드리스 서비스의 이름이 "`default-subdomain`"이면, 파드는 다음과 같이 자기 자신의 -FQDN을 얻게 된다. "`busybox-1.default-subdomain.my-namespace.svc.cluster-domain.example`". -DNS는 위 FQDN에 대해 파드의 IP를 가리키는 A 레코드를 제공한다. "`busybox1`"와 "`busybox2`" 파드 모두 -각 파드를 구분 가능한 A 레코드를 가지고 있다. + +파드와 동일한 네임스페이스 내에 같은 서브도메인 이름을 가진 헤드리스 서비스가 있다면, +클러스터의 KubeDNS 서버는 파드의 전체 주소 호스트네임(fully qualified hostname)인 A 레코드를 반환한다. +예를 들어 호스트네임이 "`busybox-1`"이고, +서브도메인이 "`default-subdomain`"이고, +같은 네임스페이스 내 헤드리스 서비스의 이름이 "`default-subdomain`"이면, +파드는 다음과 같이 자기 자신의 FQDN을 얻게 된다. +"`busybox-1.default-subdomain.my-namespace.svc.cluster-domain.example`". +DNS는 위 FQDN에 대해 파드의 IP를 가리키는 A 레코드를 제공한다. +"`busybox1`"와 "`busybox2`" 파드 모두 각 파드를 구분 가능한 A 레코드를 가지고 있다. 엔드포인트 객체는 `hostname` 필드를 임의의 엔드포인트 IP 주소로 지정할 수 있다. {{< note >}} -A 레코드는 파드의 이름으로 생성되지 않기 때문에 파드의 A 레코드를 생성하기 위해서는 `hostname` 필드를 작성해야 한다. +A 레코드는 파드의 이름으로 생성되지 않기 때문에 +파드의 A 레코드를 생성하기 위해서는 `hostname` 필드를 작성해야 한다. `hostname` 필드는 없고 `subdomain` 필드만 있는 파드는 파드의 IP 주소를 가리키는 헤드리스 서비스의 -A 레코드만 생성할 수 있다. (`default-subdomain.my-namespace.svc.cluster-domain.example`) -또한 레코드를 가지기 위해서는 파드가 준비되어야 한다. 그렇지 않은 경우, 서비스에서 `publishNotReadyAddresses=True`가 활성화된다. +A 레코드만 생성할 수 있다. +(`default-subdomain.my-namespace.svc.cluster-domain.example`) +또한 레코드를 가지기 위해서는 파드가 준비되어야 한다. +그렇지 않은 경우, 서비스에서 `publishNotReadyAddresses=True`가 활성화된다. {{< /note >}} ### 파드의 DNS 정책 @@ -129,24 +154,35 @@ A 레코드만 생성할 수 있다. (`default-subdomain.my-namespace.svc.cluste DNS 정책은 파드별로 설정할 수 있다. 현재 쿠버네티스는 다음과 같은 파드별 DNS 정책을 지원한다. 이 정책들은 파드 스펙의 `dnsPolicy` 필드에서 지정할 수 있다. +<<<<<<< refs/remotes/origin/dev-1.15-ko.6 - "`Default`": 파드는 파드가 실행되고 있는 노드로부터 네임 해석 설정(the name resolution configuration)을 상속받는다. 자세한 내용은 [관련 논의](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node) +======= +- "`Default`": 파드는 파드가 실행되고 있는 노드로부터 name resolution 설정을 상속받는다. + 자세한 내용은 + [관련 논의](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node) +>>>>>>> Translate concepts/services-networking/dns-pod-service in Korean(#15491) 에서 확인할 수 있다. -- "`ClusterFirst`": "`www.kubernetes.io`"와 같이 클러스터 도메인 suffix 구성과 일치하지 - 않는 DNS 쿼리는 노드에서 상속된 업스트림 네임서버로 전달된다. 클러스터 관리자는 추가 스텁-도메인(stub-domain)과 - 업스트림 DNS 서버를 구축할 수 있다. 그러한 경우 DNS 쿼리를 어떻게 처리하는지에 대한 자세한 내용은 [관련 논의](/docs/tasks/administer-cluster/dns-custom-nameservers/#impacts-on-pods) +- "`ClusterFirst`": "`www.kubernetes.io`"와 같이 클러스터 도메인 suffix 구성과 + 일치하지 않는 DNS 쿼리는 노드에서 상속된 업스트림 네임서버로 전달된다. + 클러스터 관리자는 추가 스텁-도메인(stub-domain)과 업스트림 DNS 서버를 구축할 수 있다. + 그러한 경우 DNS 쿼리를 어떻게 처리하는지에 대한 자세한 내용은 + [관련 논의](/docs/tasks/administer-cluster/dns-custom-nameservers/#impacts-on-pods) 에서 확인할 수 있다. - "`ClusterFirstWithHostNet`": hostNetwork에서 running 상태인 파드의 경우 DNS 정책인 "`ClusterFirstWithHostNet`"을 명시적으로 설정해야 한다. -- "`None`": 이 정책은 파드가 쿠버네티스 환경의 DNS 설정을 무시하도록 한다. 모든 DNS 설정은 파드 스펙 - 내에 `dnsConfig`필드를 사용하여 제공해야 한다. - 아래 절인 [파드의 DNS 설정](#파드의-dns-설정)에서 자세한 내용을 확인할 수 있다. +- "`None`": 이 정책은 파드가 쿠버네티스 환경의 DNS 설정을 무시하도록 한다. + 모든 DNS 설정은 파드 스펙 내에 `dnsConfig`필드를 사용하여 제공해야 한다. + 아래 절인 + [파드의 DNS 설정](#파드의-dns-설정) + 에서 자세한 내용을 확인할 수 있다. {{< note >}} "Default"는 기본 DNS 정책이 아니다. `dnsPolicy`가 명시적으로 지정되어있지 않다면 “ClusterFirst”가 기본값으로 사용된다. {{< /note >}} + 아래 예시는 `hostNetwork`필드가 `true`로 설정되어 있어서 DNS 정책이 "`ClusterFirstWithHostNet`"으로 설정된 파드를 보여준다. @@ -173,38 +209,46 @@ spec: 사용자들은 파드의 DNS 설정을 통해서 직접 파드의 DNS를 세팅할 수 있다. -`dnsConfig` 필드는 선택적이고, `dnsPolicy` 세팅과 함께 동작한다. 이때, -파드의 `dnsPolicy`의 값이 "`None`"으로 설정되어 있어야 `dnsConfig` 필드를 지정할 수 있다. +`dnsConfig` 필드는 선택적이고, `dnsPolicy` 세팅과 함께 동작한다. +이때, 파드의 `dnsPolicy`의 값이 "`None`"으로 설정되어 있어야 `dnsConfig` 필드를 지정할 수 있다. 사용자는 `dnsConfig` 필드에서 다음과 같은 속성들을 지정할 수 있다. -- `nameservers`: 파드의 DNS 서버가 사용할 IP 주소들의 목록이다. 파드의 `dnsPolicy`가 "`None`" 으로 - 설정된 경우에는 적어도 하나의 IP 주소가 포함되어야 하며, 그렇지 않으면 이 속성은 생략할 수 있다. - `nameservers`에 나열된 서버는 지정된 DNS 정책을 통해 생성된 기본 네임 서버와 합쳐지며 중복되는 주소는 제거된다. -- `searches`: 파드의 호스트네임을 찾기 위한 DNS 검색 도메인의 목록이다. 이 속성은 생략이 가능하며, +- `nameservers`: 파드의 DNS 서버가 사용할 IP 주소들의 목록이다. + 파드의 `dnsPolicy`가 "`None`" 으로 설정된 경우에는 + 적어도 하나의 IP 주소가 포함되어야 하며, + 그렇지 않으면 이 속성은 생략할 수 있다. + `nameservers`에 나열된 서버는 지정된 DNS 정책을 통해 생성된 기본 네임 서버와 합쳐지며 중복되는 주소는 제거된다. +- `searches`: 파드의 호스트네임을 찾기 위한 DNS 검색 도메인의 목록이다. + 이 속성은 생략이 가능하며, 값을 지정한 경우 나열된 검색 도메인은 지정된 DNS 정책을 통해 생성된 기본 검색 도메인에 합쳐진다. 병합 시 중복되는 도메인은 제거되며, 쿠버네티스는 최대 6개의 검색 도메인을 허용하고 있다. - `options`: `name` 속성(필수)과 `value` 속성(선택)을 가질 수 있는 객체들의 선택적 목록이다. - 이 속성의 내용은 지정된 DNS 정책에서 생성된 옵션으로 병합된다. 이 속성의 내용은 지정된 DNS 정책을 - 통해 생성된 옵션으로 합쳐지며, 병합 시 중복되는 항목은 제거된다. + 이 속성의 내용은 지정된 DNS 정책에서 생성된 옵션으로 병합된다. + 이 속성의 내용은 지정된 DNS 정책을 통해 생성된 옵션으로 합쳐지며, + 병합 시 중복되는 항목은 제거된다. 다음은 커스텀 DNS 세팅을 한 파드의 예시이다. {{< codenew file="service/networking/custom-dns.yaml" >}} -위에서 파드가 생성되면, 컨테이너 `test`의 `/etc/resolv.conf` 파일에는 다음과 같은 내용이 추가된다. +위에서 파드가 생성되면, +컨테이너 `test`의 `/etc/resolv.conf` 파일에는 다음과 같은 내용이 추가된다. ``` nameserver 1.2.3.4 search ns1.svc.cluster-domain.example my.dns.search.suffix options ndots:2 edns0 ``` + IPv6 셋업을 위해서 검색 경로와 네임 서버 셋업은 다음과 같아야 한다: ```shell kubectl exec -it dns-example -- cat /etc/resolv.conf ``` + 출력은 다음과 같은 형식일 것이다. + ```shell nameserver fd00:79:30::a search default.svc.cluster-domain.example svc.cluster-domain.example cluster-domain.example @@ -225,7 +269,9 @@ options ndots:5 {{% capture whatsnext %}} -DNS 구성 관리에 대한 지침은 [DNS 서비스 구성](/docs/tasks/administer-cluster/dns-custom-nameservers/)에서 확인 할 수 있다. +DNS 구성 관리에 대한 지침은 +[DNS 서비스 구성](/docs/tasks/administer-cluster/dns-custom-nameservers/) +에서 확인 할 수 있다. {{% /capture %}} From 6d67faf194823a49187c43b620ab9f930e55a9ed Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 05:15:52 +0900 Subject: [PATCH 29/30] Resolve conflict (#15491) --- .../ko/docs/concepts/services-networking/dns-pod-service.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 92cb80d30fd2f..0fdecb702448e 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -154,14 +154,9 @@ A 레코드만 생성할 수 있다. DNS 정책은 파드별로 설정할 수 있다. 현재 쿠버네티스는 다음과 같은 파드별 DNS 정책을 지원한다. 이 정책들은 파드 스펙의 `dnsPolicy` 필드에서 지정할 수 있다. -<<<<<<< refs/remotes/origin/dev-1.15-ko.6 - "`Default`": 파드는 파드가 실행되고 있는 노드로부터 네임 해석 설정(the name resolution configuration)을 상속받는다. - 자세한 내용은 [관련 논의](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node) -======= -- "`Default`": 파드는 파드가 실행되고 있는 노드로부터 name resolution 설정을 상속받는다. 자세한 내용은 [관련 논의](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node) ->>>>>>> Translate concepts/services-networking/dns-pod-service in Korean(#15491) 에서 확인할 수 있다. - "`ClusterFirst`": "`www.kubernetes.io`"와 같이 클러스터 도메인 suffix 구성과 일치하지 않는 DNS 쿼리는 노드에서 상속된 업스트림 네임서버로 전달된다. From 89f965cebc58222c64f22f7583be04bf7e506a7b Mon Sep 17 00:00:00 2001 From: SoHye Choi Date: Sat, 28 Sep 2019 05:19:49 +0900 Subject: [PATCH 30/30] Translate example code comment (#15491) --- content/ko/docs/concepts/services-networking/dns-pod-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/concepts/services-networking/dns-pod-service.md b/content/ko/docs/concepts/services-networking/dns-pod-service.md index 0fdecb702448e..10da72fb2d7bf 100644 --- a/content/ko/docs/concepts/services-networking/dns-pod-service.md +++ b/content/ko/docs/concepts/services-networking/dns-pod-service.md @@ -90,7 +90,7 @@ spec: name: busybox clusterIP: None ports: - - name: foo # Actually, no port is needed. + - name: foo # 사실 포트는 필요하지 않다. port: 1234 targetPort: 1234 ---