-5.jpg
当前版本:

kubectl version

最新版本:

kubeadm upgrade plan

客户端版本:

/usr/bin/yum makecache fast
rpm -qa |grep kube

卸载老的:

yum remove -y \
kubernetes-cni-0.8.7-0.x86_64 \
kubectl-1.22.3-0.x86_64 \
kubelet-1.22.3-0.x86_64 \
kubeadm-1.22.3-0.x86_64 

安装客户端:

yum install -y \
kubectl  \
kubernetes-cni   \
kubelet  \
kubeadm  

最新版本:

rpm -qa |grep kube

拉取镜像,注意coredns的镜像需要tag一下

docker pull registry.aliyuncs.com/google_containers/kube-apiserver:v1.23.1
docker pull registry.aliyuncs.com/google_containers/kube-controller-manager:v1.23.1
docker pull registry.aliyuncs.com/google_containers/kube-scheduler:v1.23.1
docker pull registry.aliyuncs.com/google_containers/kube-proxy:v1.23.1
docker pull registry.aliyuncs.com/google_containers/etcd:3.5.1-0
docker pull registry.aliyuncs.com/google_containers/coredns:1.8.6
docker tag  registry.aliyuncs.com/google_containers/coredns:1.8.6 registry.aliyuncs.com/google_containers/coredns:v1.8.6

升级:

kubeadm upgrade apply v1.23.1

重启:

systemctl daemon-reload
service kubelet restart
kubectl get nodes

当前版本:

kubectl version

发表回复

您的电子邮箱地址不会被公开。

Captcha Code