请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

初始化kubeadm问题

老师,这个命令执行后卡住。

kubeadm init --kubernetes-version=1.19.3 \
--apiserver-advertise-address=192.168.108.130 \
--image-repository registry.aliyuncs.com/google_containers \
--service-cidr=10.1.0.0/16 \
--pod-network-cidr=10.244.0.0/16

一直处在这个状态,没有下文了。

W0610 22:38:04.630551   29004 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.19.3
[preflight] Running pre-flight checks
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'

正在回答 回答被采纳积分+3

1回答

清风 2022-06-11 08:06:12

你先执行镜像拉取kubeadm config images pull

0 回复 有任何疑惑可以回复我~
  • 拉取失败,连接超时,
    回复 有任何疑惑可以回复我~ 2022-06-11 11:19:54
  • kubeadm config images pull
    
    I0611 13:11:37.659325   45758 version.go:252] remote version is much newer: v1.24.1; falling back to: stable-1.19
    W0611 13:11:38.702935   45758 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
    failed to pull image "k8s.gcr.io/kube-apiserver:v1.19.16": output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    , error: exit status 1
    To see the stack trace of this error execute with --v=5 or higher
    回复 有任何疑惑可以回复我~ 2022-06-11 13:16:05
  • 清风 回复 提问者 weibo_留下的四糸乃_0 #3
    提示是访问不了https://k8s.gcr.io/v2/。 你配置阿里云的镜像中心了吗?
    回复 有任何疑惑可以回复我~ 2022-06-14 18:10:23
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信