kubernetes 常见错误
2021-06-04 16:03
标签:flannel clust service root sig nal art etc security root@ubuntu:~# kubectl get svc 先删除 $HOME/.kube root@ubuntu:~# kubectl get node 因为没有创建flannel网络 root@ubuntu:~# kubectl create -f kube-flannel.yml 等待 网络创建完成 root@ubuntu:~# kubectl get node kubernetes 常见错误 标签:flannel clust service root sig nal art etc security 原文地址:https://blog.51cto.com/appop/2472623
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")
root@ubuntu:~# rm -rf $HOME/.kube
root@ubuntu:~# mkdir -p $HOME/.kube
root@ubuntu:~# sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
root@ubuntu:~# sudo chown $(id -u):$(id -g) $HOME/.kube/config
root@ubuntu:~# kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1
NAME STATUS ROLES AGE VERSION
ubuntu NotReady master 12m v1.17.3
podsecuritypolicy.policy/psp.flannel.unprivileged created
clusterrole.rbac.authorization.k8s.io/flannel created
clusterrolebinding.rbac.authorization.k8s.io/flannel created
serviceaccount/flannel created
configmap/kube-flannel-cfg created
daemonset.apps/kube-flannel-ds-amd64 created
daemonset.apps/kube-flannel-ds-arm64 created
daemonset.apps/kube-flannel-ds-arm created
daemonset.apps/kube-flannel-ds-ppc64le created
daemonset.apps/kube-flannel-ds-s390x created
root@ubuntu:~# kubectl get node
NAME STATUS ROLES AGE VERSION
ubuntu NotReady master 14m v1.17.3
NAME STATUS ROLES AGE VERSION
ubuntu Ready master 15m v1.17.3
上一篇:webpack