Kubernetes版本从1.13.4升级至1.17.4
下载新版二进制包下载地址https://github.com/kubernetes/kubernetes/tree/master/CHANGELOG
本次下载1.17.4
选择服务器包
解压
tar -xf kubernetes-server-linux-amd64.tar.gz
master更新以下几个二进制包
cd server/bin/ cp kube-apiserver kube-scheduler kube-controller-manager kubectl /opt/kubernetes/bin/
node端更新以下几个二进制包
cp kubelet kube-proxy /opt/kubernetes/bin/
master重启
systemctl restart kube-apiserver systemctl restart kube-scheduler systemctl restart kube-controller-manager
node重启
systemctl restart kubelet systemctl restart kube-proxy
查看,版本升级为1.17.4了
# kubectl version Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-12T21:03:42Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-12T20:55:23Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}