Network CNI Error

k8s์„ค์น˜ ์‹œ network ๋ฌธ์ œ๊ฐ€ ์ƒ๊ธฐ๋Š” ๊ฒฝ์šฐ

Junny$ > kubectl describe nodes
Name:               Junnyland-master
...
Conditions:
  Type             Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----             ------  -----------------                 ------------------                ------                       -------
...
  Ready            False   Wed, 15 Feb 2023 09:35:49 +0900   Wed, 15 Feb 2023 09:26:02 +0900   KubeletNotReady              container runtime network not ready: NetworkReady=false reason:NetworkPl                              uginNotReady message:Network plugin returns error: cni plugin not initialized

๋„คํŠธ์›Œํฌ ์„ค์ •์€ /etc/cni/net.d์—์„œ ์ฒ˜๋ฆฌํ•œ๋‹ค. ๋‹จ์ˆœํžˆ Pod๋ฅผ ํ•˜๋‚˜ ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋œ๋‹ค.

# Flannel ์„ค์น˜
> kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml

# Calico ์„ค์น˜
> curl https://raw.githubusercontent.com/projectcalico/calico/master/manifests/calico.yaml -O
> kubectl apply -f calico.yaml

Last updated