Notice
Recent Posts
Recent Comments
Link
«   2024/09   »
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
Tags
more
Archives
Today
Total
관리 메뉴

클라우드 엔지니어 꿈나무

k8s pods 실행 시 Failed to create pod sandbox: rpc error 오류 본문

kubernetes

k8s pods 실행 시 Failed to create pod sandbox: rpc error 오류

새싹싹이 2024. 7. 20. 13:51

Pod 생성 시, creating으로만 뜨고 running 으로 변화하지 않아서 상태를 확인했더니 하기와 같은 오류가 있음을 확인하였다.

 

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "d5aaee949022d13321ce3c8d36557f1de48bcf1c831ce1443665a0a461c199ad": plugin type="calico" failed (add): error getting ClusterInformation: connection is unauthorized: Unauthorized
  Normal   SandboxChanged          17m (x94 over 38m)  kubelet            Pod sandbox changed, it will be killed and re-created.

 

calico 쪽 문제 같은데 찾아보니 이러한 오류에 대해서 찾아볼 수 있었다.

https://github.com/projectcalico/calico/issues/5712 

 

CNI plugin: error getting ClusterInformation: connection is unauthorized: Unauthorized · Issue #5712 · projectcalico/calico

K8S & Calico information HostOS: RHEL 8.2 K8S: on-premise cluster; version is v1.21.1; "IPVS" mode; IP4/IP6 dual stack; installed using kubespray Calico: version is v3.18.4; non-BGP mode; enabled "...

github.com

 

calico pod 들을 재시작하면 가동이 된다는 의견이 있어서 나도 해봤다.

kubectl delete pod --all -n calico-system

 

 

정상 가동된 것을 확인할 수 있다.