Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install minikube on Mac OS Catalina

The provided methods on the Kubernetes documentation don't work and brew cask no longer seems to have the minikube formulae as of Mac OS Catalina.

Error: Cask 'minikube' is unavailable: No Cask with this name exists.

When I download it with curl it refuses to run with the following error.

/bin/minikube: cannot execute binary file: Exec format error

How can I install minikube on Mac OS Catalina. Or do I have to rollback to Mojave?

like image 688
martinkaburu Avatar asked Nov 02 '19 10:11

martinkaburu


People also ask

How do I install minikube on my Macbook?

Download and run the installer for the latest release. Add the minikube.exe binary to your PATH . Make sure to run PowerShell as Administrator. If you used a terminal (like powershell) for the installation, please close the terminal and reopen it before running minikube.

How do I install specific version minikube on Mac?

Search for the version you want to install. Click on “Assets” of that version, Download the binary suitable for your macOS architecture. Install it.

Can we install Kubernetes on Mac?

Kubernetes is available in Docker for Mac for 18.06 Stable or higher and includes a Kubernetes server and client, as well as integration with the Docker executable. The Kubernetes server runs locally within your Docker instance and it is similar to the Docker on Windows solution.


2 Answers

Minikube is no longer available as a cask.

Change command

brew cask install minikube

to

brew install minikube

or use

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 \
 && sudo install minikube-darwin-amd64 /usr/local/bin/minikube
like image 116
abadojack Avatar answered Oct 21 '22 23:10

abadojack


The provided methods on the Kubernetes documentation don't work and brew cask no longer seems to have the minikube formulae as of Mac OS Catalina.

Error: Cask 'minikube' is unavailable: No Cask with this name exists.

Minikube is no longer available as a cask. You can install it with brew install minikube.

When I download it with curl it refuses to run with the following error.

/bin/minikube: cannot execute binary file: Exec format error

An Exec format error might indicate that you're trying to execute a file that is not intended to be executed (e.g. a plain text file). Make sure the /bin/minikube file is actually a binary (you can test with file /bin/minikube, it should print 'Mach-O Executable')

like image 1
Cedric Avatar answered Oct 22 '22 01:10

Cedric