码迷,mamicode.com
首页 > 其他好文 > 详细

k8s升级v1.14 to v1.15

时间:2019-06-24 18:15:51      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:art   ons   emctl   like   test   mct   res   nod   daemon   

Upgrading kubeadm clusters from v1.14 to v1.15
yum list --showduplicates kubeadm --disableexcludes=kubernetes

find the latest 1.15 version in the list

it should look like 1.15.x-0, where x is the latest patch

replace x in 1.15.x-0 with the latest patch version

yum install -y kubeadm-1.15.x-0 --disableexcludes=kubernetes
kubeadm version
sudo kubeadm upgrade plan
sudo kubeadm upgrade apply v1.15.x

replace x in 1.15.x-0 with the latest patch version

yum install -y kubelet-1.15.x-0 kubectl-1.15.x-0 --disableexcludes=kubernetes
sudo systemctl restart kubelet

Upgrade additional control plane nodes
sudo kubeadm upgrade node
sudo kubeadm upgrade apply

replace x in 1.15.x-0 with the latest patch version

yum install -y kubeadm-1.15.x-0 --disableexcludes=kubernetes
kubectl drain $NODE --ignore-daemonsets
sudo kubeadm upgrade node

replace x in 1.15.x-0 with the latest patch version

yum install -y kubelet-1.15.x-0 kubectl-1.15.x-0 --disableexcludes=kubernetes
sudo systemctl restart kubelet

k8s升级v1.14 to v1.15

标签:art   ons   emctl   like   test   mct   res   nod   daemon   

原文地址:https://blog.51cto.com/xudate/2412825

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!