76

I had installed minikube a few months ago and wanted to upgrade as newer versions are available.

I am unable to find out how to upgrade minikube. I see a feature request for an upgrade command here - https://github.com/kubernetes/minikube/issues/1171

I tried to then uninstall minikube and hit another brickwall again. I don't see a command to uninstall minikube. The information that came closest to this was not very helpful - https://github.com/kubernetes/minikube/issues/1043

I guess we need ways to upgrade these (at least once every 6 months or so).

3
  • 2
    What are you requirements for upgrading? Do you need to keep all of the Kubernetes objects in etcd?
    – Ian Lewis
    Commented Jul 10, 2017 at 1:21
  • 1
    I think this is an advanced use-case which minikube was not meant to support. It's more for a kick-the-tires type of experience, not a full-fledged production setup. Commented Jul 10, 2017 at 2:37
  • 1
    @IanLewis - would like to keep the objects in etcd. Wouldn't want to lose them as part of an upgrade.
    – Manglu
    Commented Jul 10, 2017 at 3:28

14 Answers 14

97

Before reinstall minikube (OS X), check the following:

  • Make sure that you have brew updated:

    brew update
    
  • Make sure that you already have cask installed:

    brew cask install minikube --verbose
    

Finally, execute the following command in the same directory you've installed minikube previously (usually /usr/local/bin/):

brew cask reinstall minikube

If you see an output similar to this:

Error: It seems there is already a Binary at '/usr/local/bin/minikube'; not linking.

  • Remove the existing binary:

    rm /usr/local/bin/minikube
    

Now, you should able to reinstall (upgrade) minikube. :)

4
  • I don't even have brew installed. I guess in the past there were other ways to install minikube.
    – erikbstack
    Commented Mar 18, 2018 at 14:38
  • what's macdown, do we have to install it?
    – Bill
    Commented Oct 7, 2018 at 11:42
  • macdown is a Markdown editor for Mac. macdown.uranusjr.com Appears to have been mistakenly typed (instead of minikube). Answer has been edited. Commented Dec 17, 2018 at 23:36
  • 6
    minikube is no longer available as a cask Commented Jun 17, 2020 at 21:33
46
brew upgrade minikube

Just upgrade minikube with brew

1
  • 3
    Just make sure minikube is not running. If it is, stop, upgrade, start and will automatically download the rest needed.
    – DimiDak
    Commented Feb 17, 2021 at 21:32
31

This should do the trick.

brew cask reinstall minikube
1
  • 13
    "As of early 2020, minikube is no more available as a cask. You need to run brew upgrade minikube" Commented Aug 27, 2020 at 7:35
20

First, unlink the existing minikube from /usr/local/bin then reinstall:

$ sudo rm -rf /usr/local/bin/minikube    # unlink existing minikube

$ brew update                            # update brew itself
$ brew cask reinstall minikube           # reinstall latest minikube
1
12

An updated way is to use this:

brew cask upgrade minikube
11

Process to update:

  • Minikube is an executable: Re-install minikube is an upgrade.
  • Optionally you can remove ~/.minikube which will make minikube completely re-initialize and also update your kubernetes version (if a new version has been made available for minikube).
1
10
minikube delete
sudo rm -rf ~/.minikube

re-install minikube and it should work

9

if you are using Windows machine and Chocolatey package manager -

Step 1: run PowerShell as administrator

Step 2: run following command choco upgrade minikube

More on chocolatey https://chocolatey.org/

9

As of early 2020, and based on the guidance provided by this answer, minikube is no more available as a cask. You need to run:

brew install minikube
1
  • For those getting "Error: Cask 'minikube' is unavailable: No Cask with this name exists." this is the answer. Commented Feb 10, 2020 at 19:16
8

Minikube is no longer available in cask and calling brew cask while performing install, upgrade, or reinstall is deprecated! Use the below syntax instead:

Make sure brew is updated:

brew update

Then, to install, use:

brew install minikube

To upgrade, use:

brew upgrade minikube

To reinstall, use:

brew reinstall minikube 
1
  • Run brew leaves to check if you installed minikube via brew Commented Jul 12 at 16:39
3

On linux:

curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.22.0/minikube-linux-amd64 && chmod +x minikube && sudo cp minikube /usr/local/bin/ && rm minikube

Change the version you want to download. Above script uses 1.22.0

1

brew reinstall minikube --cask did the trick for me

0

enter image description hereI simply go to official Minikube site doc and follow the Step #1 Installation, select OS, architecture etc. in the box you get a command to upgrade/install the latest/appropriate version. As shown in the snip form the official minikube webpage.

-1

In order to upgrade in Windows, type:

minikube start

The following is the output you will get (make sure you are connected to internet):

Here is a newer version of Minikube available (v0.28.0). Download it here: https://github.com/kubernetes/minikube/releases/tag/v0.28.0

if you don't get the above message then first run minikube config set WantUpdateNotification true then do, minikube start

Before that, remove all the Minikube links from the system:

  1. Remove the previous installation path.
  2. From this folder, remove c:\Users\<user-name>\ .kube folder.
1
  • 1
    Just run minikube start --kubernetes-version=v{Version} to run the update to the specified version from the message. Commented Dec 15, 2021 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.