那ak的小火猴 2024-01-23 14:25
浏览 77
已结题

k8s1.28安装calico排错

**Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "64638f26286eae4429b62a62c9c2bdf0ce47ac3f0d303f1e91f168a54ffdb4d0": plugin type="calico" failed (add): error getting ClusterInformation: connection is unauthorized: Unauthorized**

img

img

img

这些均为处理过程中遇到的报错,皆可以通过更换新版本3.70解决,更换过程在下
最近在玩k8s1.28.3版本安装calico时,遇到calico-kube-controllers起不来,查看此pod日志打印以上错误信息。这个问题通常与rabc授权有关。我先是安装3.60版本的calico,结果calico的pod都是running状态,ready状态也能对上但是两个node的pod就是ping不通
然后我将3.60版本改为3.70后便报错,如上。
我安装官网方式

# wget https://raw.githubusercontent.com/projectcalico/calico/v3.27.0/manifests/tigera-operator.yaml
# kubectl apply -f tigera-operator.yaml
# wget https://raw.githubusercontent.com/projectcalico/calico/v3.27.0/manifests/custom-resources.yaml
更改custom-resources.yaml文件
cidr: 10.244.0.0/16
为pod的ip域
kubectl create -f custom-resources.yaml
kubectl get all -n calico-system
等待所有资源正常运行即可,该版本官网已经测试通过

img

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 1月31日
    • 创建了问题 1月23日