在 minikube 中更新 k8s

update k8s in minikube

我是运行:

:~$ minikube version

minikube version: v1.20.0

Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.6", 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:"19", GitVersion:"v1.19.6", GitCommit:"fbf646b339dc52336b55d8ec85c181981b86331a", GitTreeState:"clean", BuildDate:"2020-12-18T12:01:36Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}

是否可以在 minikube 安装中仅升级 kubernetes?

您可以从 minikube 开始使用您选择的 k8s 版本

▶ minikube start --kubernetes-version=1.22.1
  minikube v1.23.0 on Darwin 11.6.1
✨  Using the virtualbox driver based on existing profile
  Starting control plane node minikube in cluster minikube
  minikube 1.25.1 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.25.1
  To disable this notice, run: 'minikube config set WantUpdateNotification false'