kubernetes启动时候错误(Unable to connect to the server: x509: certificate signed by unknown authority )

kubernetes启动时候报错如下:

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")

是忘记执行脚本程序

  mkdir -p $HOME/.kube
  sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
  sudo chown $(id -u):$(id -g) $HOME/.kube/config

执行了,就能正常运行了。

[root@worker3 shell]# kubectl get node
NAME      STATUS    ROLES     AGE       VERSION
worker3   Ready     master    1m        v1.10.0

 

你可能感兴趣的:(云计算/大数据,Kubernetes)