前言
提示:这里可以添加本文要记录的大概内容:
学习ks8第一天开始部署的方式
一、k8s部署方式
sts“. This can take up to 4m0s
[kubelet–check] Initial timeout of 40s passed.
error execution phase wait-control-plane: couldn’t initialize a Kubernetes cluster
To see the stack trace of this error execute with —v=5 or higher
[root@k8s-master ~]# kubeadm config print init-defaults > init.default.yaml
W1128 13:29:56.206235 89761 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[root@k8s-master ~]# vi init.default.yaml
[root@k8s-master ~]# systemctl restart kubelet
[root@k8s-master ~]# kubeadm config images pull –config=init.default.yaml
W1128 13:30:23.803498 90232 configset.go:202] 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.18.0”: 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