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

2020-05-28  本文已影响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
上一篇 下一篇

猜你喜欢

热点阅读