티스토리 뷰

 

용어

BGP : Border Gateway Protocol (BGP)

 

 

[preflight] Running pre-flight checks

ec2에서 위 메세지에서 안넘어가는 경우는 security group에서 6443포트가 안열려있을 확률이 높습니다.

 

 

열어주면 join됩니다.

 

 

 

networkPlugin cni failed to set up pod 에러

Warning  FailedCreatePodSandBox  19s                kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "d4abe3464a110b0411c72e74124a7fd9409cfe8663911661cf05f0f9c860d305" network for pod "nginx": networkPlugin cni failed to set up pod "nginx_default" network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/

 

위 에러가 날 때는 calico에서 BGP포트가 안열려 있는 경우가 있습니다. 아래 내용을 참고해 Port를 추가로 오픈 하시면 진행 됩니다.

 

* Calico설치 할 때 열어야 할 Port(179번 등)

https://projectcalico.docs.tigera.io/getting-started/kubernetes/requirements

 

System requirements

Review requirements before installing Calico to ensure success.

projectcalico.docs.tigera.io

 

 

Calico로 하다하다 안돼서 Flannel로 바꾸었습니다.

 

flannel ip 지우는 법

https://stackoverflow.com/questions/46276796/kubernetes-cannot-cleanup-flannel

 

Kubernetes cannot cleanup Flannel

First I start Kubernetes using Flannel with 10.244.0.0. Then I reset all and restart with 10.84.0.0. However, the interface flannel.1 still is 10.244.1.0 That's how I clean up: kubeadm reset

stackoverflow.com

 

ip link delete flannel.1

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함