154439483e890eff.jpg
报错信息:

Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "79d8bb5525944001a5542129c794e2608ec444b53ff60fbf589e4c438aab56a2" network for pod "kuboard-age
nt-2-779fb68ccf-lsjq6": networkPlugin cni failed to set up pod "kuboard-agent-2-779fb68ccf-lsjq6_kuboard" network: error getting ClusterInformation: Get https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes"), failed to clean up sandbox container "79d8bb5525944001a5542129c794e2608ec444b53ff60fbf589e4c438aab56a2" network for pod "kuboard-agent-2-779fb68ccf-lsjq6": networkPlugin cni failed to teardown pod "kuboard-agent-2-779fb68ccf-lsjq6_kuboard" network: error getting ClusterInformation: Get https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")]  Normal   SandboxChanged          48s (x26 over 5m56s)  kubelet, node02    Pod sandbox changed, it will be killed and re-created.

解决:
pod和svc cidr有冲突造成,重新指定cidr解决

2 对 “Failed to create pod sandbox: rpc error: code = Unknown desc =”的想法;

  1. 我现在遇到和你一样的问题了,请问

    pod和svc cidr有冲突造成,重新指定cidr解决

    具体如何操作 我看我的两个网段确实不一样

    [root@k8s-master1 pki]# kubectl describe cm kubeadm-config -n kube-system |grep Subnet
    podSubnet: 10.244.0.0/16
    serviceSubnet: 10.96.0.0/12

    1. 你这个cidr正确的,应该是其他问题导致的:
      检查下kubeadm init cidr和cni里面的是否匹配了。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code