排查过程
# 查看安装器 ks-installer-757d76f5ff-v7lkv
kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}'
# 查看日志 ,发现
#Warning  FailedScheduling  7m17s (x39 over 47m)  default-scheduler  0/1 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate
kubectl describe po ks-installer-757d76f5ff-v7lkv -n kubesphere-system
原因分析

当创建单机版的 k8s 时,这个时候 master 节点是默认不允许调度 pod

解决方案
kubectl taint nodes --all node-role.kubernetes.io/master-

参考:https://blog.csdn.net/weixin_43114954/article/details/119153903

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐