could not initialize a Kubernetes cluster error execution phase wait-control-plane

在尝试使用kubeadm初始化Kubernetes集群时遇到错误。日志显示警告提示docker服务未启用,cgroup驱动推荐使用systemd,并且在等待控制平面启动的阶段出现错误,导致无法初始化集群。
摘要由CSDN通过智能技术生成

root@ubuntu:/home/ubuntu/k8s# kubeadm init --config kubeconfig.yml --v=5
I0623 15:19:11.938930 37878 initconfiguration.go:200] loading configuration from “kubeconfig.yml”
W0623 15:19:11.944626 37878 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.18.4
[preflight] Running pre-flight checks
I0623 15:19:11.945633 37878 checks.go:577] validating Kubernetes and kubeadm version
I0623 15:19:11.945850 37878 checks.go:166] validating if the firewall is enabled and active
I0623 15:19:11.960529 37878 checks.go:201] validating availability of port 6443
I0623 15:19:11.960893 37878 checks.go:201] validating availability of port 10259
I0623 15:19:11.961056 37878 checks.go:201] validating availability of port 10257
I0623 15:19:11.961190 37878 checks.go:286] validating the existence of file /etc/kubernetes/manifests/kube-apiserver.yaml
I0623 15:19:11.961294 37878 checks.go:286] validating the existence of file /etc/kubernetes/manifests/kube-controller-manager.yaml
I0623 15:19:11.961370 37878 checks.go:286] validating the existence of file /etc/kubernetes/manifests/kube-scheduler.yaml
I0623 15:19:11.961438 37878 checks.go:286] validating the existence of file /etc/kubernetes/manifests/etcd.yaml
I0623 15:19:11.961490 37878 checks.go:432] validating if the connectivity type is via proxy or direct
I0623 15:19:11.961565 37878 checks.go:471] validating http connectivity to first IP address in the CIDR
I0623 15:19:11.961688 37878 checks.go:471] validating http connectivity to first IP address in the CIDR
I0623 15:19:11.961751 37878 checks.go:102] validating the container runtime
I0623 15:19:12.032291 37878 checks.go:128] validating if the service is enabled and active
[WARNING Service-Docker]: docker service is not enabled, please run ‘systemctl enable docker.service’
[WARNING IsDockerSystemdCheck]: detected “cgroupfs” as the Docker cgroup driver. The recommended driver is “systemd”. Please follow the guide at https://kubernetes.io/docs/setup/cri/
I0623 15:19:12.145445 37878 checks.go:335] validating the contents of file /proc/sys/net/bridge/bridge-nf-call-iptables
I0623 15:19:12.145564 37878 checks.go:335] validating the contents of file /proc/sys/net/ipv4/ip_forward
I0623 15:19:12.145807 37878 checks.go:649] validating whether swap is enabled or not
I0623 15:19:12.146013 37878 checks.go:376] validating the presence of executable conntrack
I0623 15:19:12.146131 37878 checks.go:376] validating the presence of executable ip
I0623 15:19:12.146167 37878 checks.go:376] validating the presence of executable iptables
I0623 15:19:12.146388 37878 checks.go:376] validating the presence of executable mount
I0623 15:19:12.146486 37878 checks.go:376] validating the presence of executable nsenter
I0623 15:19:12.146512 37878 checks.go:376] validating the presence of executable ebtables
I0623 15:19:12.146634 37878 checks.go:376] validating the presence of executable ethtool
I0623 15:19:12.146659 37878 checks.go:376] validating the presence of executable socat
I0623 15:19:12.146682 37878 checks.go:376] validating the presence of executable tc
I0623 15:19:12.146845 37878 checks.go:376] validating the pre

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

是魏毛毛啊

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值