报错信息:Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")

k8s的一个小坑记录

        master启动后,使用kubectl get pod 后提示Unable to connect to the server: x509

原因是因为上一次节点启动的时候没有清楚干净,在执行copy操作的时候覆盖了已有的

结局方案:彻底清空home目录下的.kube文件夹,重新复制k8s的文件复制命令。

当执行完毕后,get nodes 成功解决。

操作步骤

Logo

开源、云原生的融合云平台

更多推荐