kubeadmupgradeplan# 显示如下[upgrade/config] Making sure the configuration is correct:[upgrade/config] Reading configuration from the cluster...[upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'[preflight] Running pre-flight checks.[upgrade] Running cluster health checks[upgrade] Fetching available versions to upgrade to[upgrade/versions] Cluster version: v1.22.16[upgrade/versions] kubeadm version: v1.22.17I120415:00:41.7722283962version.go:255]remoteversionismuchnewer:v1.28.4; fallingbackto:stable-1.22[upgrade/versions] Target version: v1.22.17[upgrade/versions] Latest version in the v1.22 series: v1.22.17Componentsthatmustbeupgradedmanuallyafteryouhaveupgradedthecontrolplanewith'kubeadm upgrade apply':COMPONENTCURRENTTARGETkubelet14xv1.22.16v1.22.17Upgradetothelatestversioninthev1.22series:COMPONENTCURRENTTARGETkube-apiserverv1.22.16v1.22.17kube-controller-managerv1.22.16v1.22.17kube-schedulerv1.22.16v1.22.17kube-proxyv1.22.16v1.22.17CoreDNS1.8.0v1.8.4etcd3.5.0-03.5.6-0Youcannowapplytheupgradebyexecutingthefollowingcommand:kubeadmupgradeapplyv1.22.17_____________________________________________________________________Thetablebelowshowsthecurrentstateofcomponentconfigsasunderstoodbythisversionofkubeadm.Configsthathavea"yes"markinthe"MANUAL UPGRADE REQUIRED"columnrequiremanualconfigupgradeorresettingtokubeadmdefaultsbeforeasuccessfulupgradecanbeperformed.Theversiontomanuallyupgradetoisdenotedinthe"PREFERRED VERSION"column.APIGROUPCURRENTVERSIONPREFERREDVERSIONMANUALUPGRADEREQUIREDkubeproxy.config.k8s.iov1alpha1v1alpha1nokubelet.config.k8s.iov1beta1v1beta1no_____________________________________________________________________
执行升级到 v1.22.17
kubeadmupgradeapplyv1.22.17
正常情况下显示如下
[upgrade/successful] SUCCESS! Your cluster was upgraded to "v1.22.17". Enjoy!
[upgrade/kubelet] Now that your control plane is upgraded, please proceed with upgrading your kubelets if you haven't already done so.