标签:certificate x509 system centos7 Running 7ff77c879f coredns kube
Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 27s default-scheduler Successfully assigned kube-system/coredns-7ff77c879f-hkj5z to centos7 Warning FailedCreatePodSandBox 25s kubelet, centos7 Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "fdfc6a8f12bade06b73930dea5f7a3698ebcdabfea59fa1290fde19fbdb5891a" network for pod "coredns-7ff77c879f-hkj5z": networkPlugin cni failed to set up pod "coredns-7ff77c879f-hkj5z_kube-system" 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 "fdfc6a8f12bade06b73930dea5f7a3698ebcdabfea59fa1290fde19fbdb5891a" network for pod "coredns-7ff77c879f-hkj5z": networkPlugin cni failed to teardown pod "coredns-7ff77c879f-hkj5z_kube-system" 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 9s (x2 over 25s) kubelet, centos7 Pod sandbox changed, it will be killed and re-created. [root@centos7 ~]# ls /etc/cni/ net.d [root@centos7 ~]# ls /etc/cni/net.d/ 10-calico.conflist 10-flannel.conflist calico-kubeconfig [root@centos7 ~]# rm -rf /etc/cni/net.d/10-calico.conflist [root@centos7 ~]# rm -rf /etc/cni/net.d/calico-kubeconfig
mkdir -p $HOME/.kube cp -i /etc/kubernetes/admin.conf $HOME/.kube/config chown $(id -u):$(id -g) $HOME/.kube/config echo export KUBECONFIG=~/.kube/config>> ~/.bashrc source ~/.bashrc
[root@centos7 ~]# kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system coredns-7ff77c879f-hkj5z 1/1 Running 0 97s kube-system coredns-7ff77c879f-w5v8q 1/1 Running 0 3m46s kube-system etcd-centos7 1/1 Running 0 28m kube-system kube-apiserver-centos7 1/1 Running 0 28m kube-system kube-controller-manager-centos7 1/1 Running 0 28m kube-system kube-flannel-ds-arm64-gmljw 1/1 Running 0 7m31s kube-system kube-proxy-dv7lj 1/1 Running 0 28m kube-system kube-scheduler-centos7 1/1 Running 0 28m
标签:certificate,x509,system,centos7,Running,7ff77c879f,coredns,kube 来源: https://www.cnblogs.com/dream397/p/15162022.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。