본문 바로가기

CKA &. CKAD/Networking

Cluster Networking

Check required ports

 

Master Node(s)

Protocol Direction Port Range Purpose Used By
TCP Inbound 6443 Kubernetes API Server All
TCP Inbound 2379-2380 etcd server client API kube-apiserver, etcd
TCP Inbound 10250 Kubelet API Self, Control Plane
TCP Inbound 10251 kube-scheduler Self
TCP Inbound 10252 kube-controller-manager Self

 

Worker Node

Protocol Direction Port Range Purpose Used By
TCP Inbound 10250 Kubelet API Self, Control plane
TCP Inbound 30000-32767 NodePort Services** All

Commands

ip link
ip addr
ip addr add 192.168.1.10/24 dev eth0
ip route
ip route add 192.168.1.0/24 via 192.168.2.1
route
cat /proc/sys/net/ipv4/ip_forward
arp
netstat -plnt

 

Important Note about CNI and CKA Exam

 

Kubernetes 클러스터에서 Network Addons 을 배포하는 것에 대한 중요한 팁

다가오는 실습에서는 Network Addon을 사용합니다. 여기에는 클러스터에 Network  Plugin 설치가 포함됩니다. weave-net을 예로 사용했지만 여기에 설명 된 모든 Plugin을 사용할 수 있습니다.

 

https://kubernetes.io/docs/concepts/cluster-administration/addons/

 

Installing Addons

Caution: This section links to third party projects that provide functionality required by Kubernetes. The Kubernetes project authors aren't responsible for these projects. This page follows CNCF website guidelines by listing projects alphabetically. To ad

kubernetes.io

https://kubernetes.io/docs/concepts/cluster-administration/networking/#how-to-implement-the-kubernetes-networking-model

 

Cluster Networking

Networking is a central part of Kubernetes, but it can be challenging to understand exactly how it is expected to work. There are 4 distinct networking problems to address: Highly-coupled container-to-container communications: this is solved by Pods and lo

kubernetes.io

CKA 시험에서 특별히 지시하지 않는 한 Network Addon을 배포해야하는 질문의 경우 위 링크에 설명 된 솔루션을 사용할 수 있다.

그러나 현재 문서에는 타사 Network Addon을 배포하는 데 사용되는 정확한 명령에 대한 직접적인 참조가 포함되어 있지 않습니다.

위의 링크는 시험에 사용할 수없는 타사 / 공급 업체 사이트 또는 GitHub 저장소로 리디렉션됩니다. 이는 Kubernetes 문서의 콘텐츠를 공급 업체 중립적으로 유지하기 위해 의도적으로 수행되었습니다.

현재 문서에는 weave 네트워크 애드온을 배포하기위한 정확한 명령을 찾을 수있는 위치가 여전히 있습니다.

 

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/#steps-for-the-first-control-plane-node

 

Creating Highly Available clusters with kubeadm

This page explains two different approaches to setting up a highly available Kubernetes cluster using kubeadm: With stacked control plane nodes. This approach requires less infrastructure. The etcd members and control plane nodes are co-located. With an ex

kubernetes.io

 

'CKA &. CKAD > Networking' 카테고리의 다른 글

Pod Networking  (0) 2021.03.31
Practice Test - Explore Kubernetes Environments  (0) 2021.03.31
CNI (Container Network Interface)  (0) 2021.03.30
Docker Networking  (0) 2021.03.30
Network Namespace  (0) 2021.03.30