我已经安装了一个由3个节点组成的Kubernetes集群,并使用了calico网络插件。出于某种原因,我决定完全删除kubernetes,并使用一个不同的网络插件:法兰绒。
在我试图部署我的第一个容器之前,一切似乎都很好。
kubectl describe pod/cassandra返回以下错误:
Unknown desc = [failed to set up sandbox container "957f68c3cbe9b230b0e2bd6729a12c340f903de568622e28e335f7b48563a445" network for pod "cassandra-d7db46b86-dz7ck": networkPlugin cni failed to set up pod "cassandra-d7db46b86-dz7ck_default" 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 "957f68c3cbe9b230b0e2bd6729a12c340f903de568622e28e335f7b48563a445" network for pod "cassandra-d7db46b86-dz7ck": networkPlugin cni failed to teardown pod "cassandra-d7db46b86-dz7ck_default" 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 3s (x3 over 18s) kubelet, <node name> Pod sandbox changed, it will be killed and re-created.通过阅读错误,虽然我删除了它并安装了Flannel插件,但它似乎仍然被Kubernetes使用。
我怎么才能清理这个烂摊子?
发布于 2020-02-26 02:06:52
中的所有棉布链接
ip link list | grep cali | awk '{print $2}' | cut -c 1-15 | xargs -I {} ip link delete {}rm /etc/cni/net.d/10-calico.conflist && rm /etc/cni/net.d/calico-kubeconfig在这之后,你安装法兰绒。
发布于 2020-02-25 22:25:09
您能否尝试重新连接(从集群中移除并再次加入它)计算/从节点?对我以前的一个案子有效。
https://stackoverflow.com/questions/60400224
复制相似问题