본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Kubernetes 컨트롤 플레인을 IPv6로 운영하도록 구성하기

원문 보기 위키 갱신

노드와 워크로드 사이에 IPv6 연결이 있다면 Kubernetes 컨트롤 플레인도 IPv4 대신 IPv6로 운영하도록 구성할 수 있어요. 이 문서는 듀얼 스택 또는 IPv6 전용 클러스터를 위해 각 컴포넌트에 설정해야 하는 플래그를 안내합니다. 컴포넌트별 플래그 표를 중심으로 살펴보세요.

출처: 문서

본문

큰 그림

노드와 워크로드 사이에 IPv6 연결이 있다면 Kubernetes 컨트롤 플레인도 IPv4 대신 IPv6로 운영하도록 구성할 수 있어요.

적용 방법

Kubernetes 컴포넌트를 IPv6 전용으로 구성하려면 다음 플래그를 설정하세요.

Component Flag Value/Content
kube-apiserver --bind-address or --insecure-bind-address Set to the appropriate IPv6 address or :: for all IPv6 addresses on the host.
--advertise-address Set to the IPv6 address that nodes should use to access the kube-apiserver.
kube-controller-manager --master Set with the IPv6 address where the kube-apiserver can be accessed.
kube-scheduler --master Set with the IPv6 address where the kube-apiserver can be accessed.
kubelet --address Set to the appropriate IPv6 address or :: for all IPv6 addresses.
--cluster-dns Set to the IPv6 address that will be used for the service DNS; this must be in the range used for --service-cluster-ip-range.
--node-ip Set to the IPv6 address of the node.
kube-proxy --bind-address Set to the appropriate IPv6 address or :: for all IPv6 addresses on the host.
--master Set with the IPv6 address where the kube-apiserver can be accessed.

듀얼 스택 설정은 Enable IPv4/IPv6 dual-stack을 참고하세요.

더 알아보기 (Learn more)

IPv6 전용 구성 시에는 --cluster-dns가 --service-cluster-ip-range 범위 안에 있어야 한다는 점이 특히 중요해요. 듀얼 스택이 필요하면 Kubernetes 공식 문서의 듀얼 스택 가이드를 함께 확인하세요.