遇到的坑
1. Timeout: Waiting for the kubelet to boot up the control plane as static Pods from directory “/etc/kubernetes/manifests”. This can take up to 4m0s
https://stackoverflow.com/que…
2. The connection to the server localhost:8080 was refused – did you specify the right host or port?
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
3. 单节点 k8s 创立利用 pending
kubectl get events # 查看 k8s 事件日志
解决:0/1 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master:}, that the pod didn’t tolerate.
kubectl taint nodes --all node-role.kubernetes.io/master-
参考:https://kubernetes.io/zh/docs…