서론
온프레미스 환경에서 kubeadm으로 쿠버네티스 클러스터를 구성한 후, CNI로 Cilium을 설치하며 생긴 이슈이다.
cilium을 정상적으로 설치한 후 cilium cli으로 배포된 cilium 파드의 정상적인 상태까지 확인했다.
하지만 지속적으로 Node 상태를 확인하면 "cni plugin not initialized"라는 이유로 NotReady가 되어 있었고, Coredns도 계속 Pending 상태로 있었다.
해결
기존 설치된 CNI의 영향을 의심하여, kubeadm reset과 /etc/cni 삭제 및 iptables도 flush를 해줬으나 해결하지 못하였고, 아래 링크를 통하여 혹시나 해본 것이 잘 되었다.
K8s cni plugin issue: cni plugin not initialized while kube-flannel is running
Hi, I am new to Kubernetes. After ran kubeadm init --image-repository registry.aliyuncs.com/google_containers --pod-network-cidr=10.244.0.0/16, I used flannel as my CNI. And it works fine until I ran kubeadm rest and init again. It came out an error in jou
discuss.kubernetes.io
각 노드를 재부팅해준 것이다.
# 재시작
reboot
이후 node가 Ready 상태로 전환되고, coredns도 정상적으로 생성되었다.
특정 커널의 옵션이 변경된 상태로 남아있어서 cni 설치를 감지하지 못한 것으로 추정이 된다.
'Devops > Kubernetes' 카테고리의 다른 글
[Kubernetes] 한 노드에 동일한 파드 스케줄링 제한 (0) | 2024.11.24 |
---|---|
[Calico] Multiple Interface에서 특정 Network Interface만 사용 or 제외 (0) | 2024.11.07 |
[Containerd] Image Pull의 Registry에 Http 또는 Self-Signed Certification 사용 시 (0) | 2024.11.05 |
[Kubernetes] Pgadmin4 Ingress 적용 (0) | 2024.07.07 |
[Kubernetes/Calico] 파드 IP와 네트워크 인터페이스 (0) | 2024.05.27 |