kubernetes升级到 v1.16.2
1.16.2已经可用:
组件升级
yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
查看升级计划
kubeadm upgrade plan
COMPONENT CURRENT AVAILABLE
Kubelet 3 x v1.16.1 v1.16.2
Upgrade to the latest version in the v1.16 series:
COMPONENT CURRENT AVAILABLE
API Server v1.16.1 v1.16.2
Controller Manager v1.16.1 v1.16.2
Scheduler v1.16.1 v1.16.2
Kube Proxy v1.16.1 v1.16.2
CoreDNS 1.6.2 1.6.2
Etcd 3.3.15 3.3.15-0
You can now apply the upgrade by executing the following command:
kubeadm upgrade apply v1.16.2
_____________________________________________________________________
升级
kubeadm upgrade apply v1.16.2 -y
查看版本
[root@k8s01 ~]# kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.1", GitCommit:"d647ddbd755faf07169599a625faf302ffc34458", GitTreeState:"clean", BuildDate:"2019-10-02T16:51:36Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}