美文网首页
k8s Get https://[10.96.0.1]:443/

k8s Get https://[10.96.0.1]:443/

作者: 埃尔温薛定谔不养猫 | 来源:发表于2020-05-28 15:13 被阅读0次

这两天重新部署kubernetes,在部署应用的时候总是部署不上,报以下错误(我自己换行了一下,更好看错误)

failed to set up sandbox container "077e2fc1c141a622aaf9337b760b2c1b98d4357e35ababcc768f130dee2cd8d1" network for pod "mysql-6h5jk": 
    networkPlugin cni failed to set up pod "mysql-6h5jk_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 "077e2fc1c141a622aaf9337b760b2c1b98d4357e35ababcc768f130dee2cd8d1" network for pod "mysql-6h5jk": networkPlugin cni failed to teardown pod "mysql-6h5jk_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")

最后是盲猜网络插件有问题,于是重新安装 Calico 解决了

[root@master ~]# kubectl apply -f https://docs.projectcalico.org/v3.11/manifests/calico.yaml
configmap/calico-config created

相关文章

网友评论

      本文标题:k8s Get https://[10.96.0.1]:443/

      本文链接:https://www.haomeiwen.com/subject/sqhaahtx.html