当我命令minikube状态时,它会显示,但带有GitHub链接的内容是更新minikube。你能告诉我如何简单地做到这一点吗?
$ minikube status
⚠️ There is a newer version of minikube available (v1.3.1). Download it here:
https://github.com/kubernetes/minikube/releases/tag/v1.3.1
To disable this notification, run the following:
minikube config set WantUpdateNotification false
host: Stopped
kubelet:
apiserver:
kubectl:
答案 0 :(得分:1)
$ sudo minikube delete
$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.3.1/minikube-linux-amd64 && chmod +x minikube && sudo cp minikube /usr/local/bin/ && rm minikube
$ sudo minikube start --vm-driver=none
答案 1 :(得分:1)
下面的脚本删除了Minikube中发现的所有内容(吊舱,服务,秘密等),删除了旧的Minikube文件,安装了最新的Minikube < / strong>文件,然后启用 ingress
和dashboard
插件。
#! /bin/sh
# Minikube update script file
minikube delete && \
sudo rm -rf /usr/local/bin/minikube && \
sudo curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \
sudo chmod +x minikube && \
sudo cp minikube /usr/local/bin/ && \
sudo rm minikube && \
minikube start &&\
# Enabling addons: ingress, dashboard
minikube addons enable ingress && \
minikube addons enable dashboard && \
minikube addons enable metrics-server && \
# Showing enabled addons
echo '\n\n\033[4;33m Enabled Addons \033[0m' && \
minikube addons list | grep STATUS && minikube addons list | grep enabled && \
# Showing current status of Minikube
echo '\n\n\033[4;33m Current status of Minikube \033[0m' && minikube status
(要使用dashboard
插件,请在终端上执行minikube dashboard
的命令)
脚本运行后的示例终端输出:
答案 2 :(得分:0)
我有同样的问题。我发现运行minikube delete
实际上并没有删除二进制/ usr / local / bin / minikube。手动删除它,或者您需要将最新的minikube手动复制到/ usr / local / bin
答案 3 :(得分:0)
对于那些在 windows 上运行 mk 的人,请按照以下步骤操作:(您将获得最新版本的 mk)
1: minikube stop
2: choco upgrade minikube
3: visit https://github.com/kubernetes/minikube/releases --> see latest version of kubernetes supported.
4: minikube start --kubernetes-version=1.xx.x
5: choco upgrade kubernetes-cli
6: kubectl version : to verify the update
答案 4 :(得分:0)
在更新我的 Ubuntu 18.04 时,我做了以下操作
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb
minikube version # to check the version
minikube start # start minikube
minikube addons list # then check addons
对于 linux,它将状态保存在 home .minikube
目录中,因此无需删除以前的 minikube 然后启用插件,它会自动选择插件并在从 .minikube
目录读取状态后启用。>