您的位置 首页 k8s

k8s1.27.2 安装

 

master231-k8s1.27.2

之前是用   kubeadm  安装的 1.23.17 版本。 今天这篇文章安装一下 1.27.2

yum -y install kubeadm-1.27.2

 

Installed:
  kubeadm.x86_64 0:1.27.2-0                                                                 

Dependency Installed:
  kubectl.x86_64 0:1.27.3-0   kubelet.x86_64 0:1.27.3-0   kubernetes-cni.x86_64 0:1.2.0-0  

Complete!

 

systemctl enable --now kubele

systemctl status kubelet

kubeadm init --kubernetes-version=v1.27.2 --image-repository registry.aliyuncs.com/google_containers  --pod-network-cidr=10.100.0.0/16 --service-cidr=10.200.0.0/16  --service-dns-domain=baimei.com

 

出错:

[init] Using Kubernetes version: v1.27.2
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
	[ERROR CRI]: container runtime is not running: output: E0616 06:40:31.626333   14263 remote_runtime.go:616] "Status from runtime service failed" err="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory\""
time="2023-06-16T06:40:31+08:00" level=fatal msg="getting status of runtime: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory\""
, error: exit status 1
	[ERROR Port-10250]: Port 10250 is in use
	[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章