【Kubernetes】集群搭建/部署问题集锦

spoonysnail

遇到的坑

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...

阅读 114

红皇后假说
你必须尽力地不停地跑,才能使你保持在原地
76 声望
1 粉丝
0 条评论
你知道吗?

76 声望
1 粉丝
文章目录
宣传栏