본문 바로가기
쿠버네티스(k8s)

4. [쿠버네티스설치] control plane Master node 설정

by 뜻깊은태클 2022. 9. 23.
반응형

1) kubeadm 초기화 후 IP 할당을 하여 Init 해준다.

$kubeadm reset
$kubeadm init  --apiserver-advertise-address {master Ip 주소} --pod-network-cidr=172.1.0.0/16

* 포드 네트워크의 IP 주소 범위를 지정 설정된 경우 제어 플레인은 모든 노드에 대해 CIDR을 자동으로 할당이다.
* CIDR는  Classless Inter-Domain Routing 으로 클래스 없는 도메인간 라우팅 기법 

* 맨 마지막 토큰을 복사 해둔다.

 

!에러키워드!
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR CRI]: container runtime is not running: output:
- 참고 https://hungc.tistory.com/186

 

[troubleshooting] [ERROR CRI]: container runtime is not running

[ERROR CRI]: container runtime is not running /etc/containerd/config.toml 파일에서 disabled_plugins 항목에서 CRI 제거한 뒤 $ systemctl restart containerd

hungc.tistory.com

#/etc/containerd/config.toml 파일에서 
#disabled_plugins 항목에서 CRI 제거한 뒤
$systemctl restart containerd

 

2) 컨테이너 네트워크 인터페이스 (CNI) 기반 Pod 네트워크 애드온을 사용하여 Pod가 서로 통신할 수 있다.

- 위브넷 설치

$kubectl apply -f https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s.yaml

https://www.weave.works/docs/net/latest/kubernetes/kube-addon/

 

Integrating Kubernetes via the Addon

The following topics are discussed: Installation Before installing Weave Net, you should make sure the following ports are not blocked by your firewall: TCP 6783 and UDP 6783/6784. For more details, see the FAQ. Weave Net can be installed onto your CNI-ena

www.weave.works

 

반응형