|NO.Z.00094|——————————|^^ 升級 ^^|——|KuberNetes&二進位制升級.V05|-----------------------|kubernetes元件|kubectl.v1.17.0——>v1.19.5|
阿新 • • 發佈:2022-03-29
[CloudNative:KuberNetes&二進位制升級.V05] [Applications.KuberNetes] [|DevOps|kubernetes|二進位制升級|kubernetes.v1.17.0——>v1.19.5|元件|kubectl.v1.17.0——>v1.19.5|]
一、kubernetes升級k8s-master01元件kubectl.v1.17.0——>v1.19.5
二、備份k8s-master01元件kubectl歷史版本### --- 檢視k8s-master01元件kubectl歷史版本 ~~~ 檢視kubectl歷史版本 [root@k8s-master01 ~]# /usr/local/bin/kubectl version Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.17.0", GitCommit:"8a62859e515889f07e3e3be6a1080413f17cf2c3", GitTreeState:"clean", BuildDate:"2021-04-15T03:28:42Z", GoVersion:"go1.15.10", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.17.0", GitCommit:"8a62859e515889f07e3e3be6a1080413f17cf2c3", GitTreeState:"clean", BuildDate:"2021-04-15T03:19:55Z", GoVersion:"go1.15.10", Compiler:"gc", Platform:"linux/amd64"}
### --- 備份kubectl版本
[root@k8s-master01 ~]# which kubectl
/usr/local/bin/kubectl
[root@k8s-master01 ~]# mkdir /usr/local/bin/kubectl.bak
[root@k8s-master01 ~]# cp /usr/local/bin/kubectl /usr/local/bin/kubectl.bak/
三、升級k8s-master01元件kubectl元件服務
四、檢視k8s-master01元件kubectl元件服務### --- 升級kubectl服務 [root@k8s-master01 ~]# cp upgrade/master/kubernetes/server/bin/kubectl /usr/local/bin/ cp: overwrite ‘/usr/local/bin/kubectl’? y
### --- 檢視kubectl版本 [root@k8s-master01 ~]# /usr/local/bin/kubectl version Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.5", GitCommit:"e338cf2c6d297aa603b50ad3a301f761b4173aa6", GitTreeState:"clean", BuildDate:"2020-12-09T11:18:51Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.5", GitCommit:"e338cf2c6d297aa603b50ad3a301f761b4173aa6", GitTreeState:"clean", BuildDate:"2020-12-09T11:10:32Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
===============================END===============================
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart ——W.S.Landor
來自為知筆記(Wiz)