Skip to content

Instantly share code, notes, and snippets.

@rupeshtiwari
Last active March 28, 2024 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rupeshtiwari/b36c68e0dab65b04a666eaf4f931ab98 to your computer and use it in GitHub Desktop.
Save rupeshtiwari/b36c68e0dab65b04a666eaf4f931ab98 to your computer and use it in GitHub Desktop.
install minikube on macos, kubernetes

If you're getting a "command not found" error for Minikube, it means that Minikube is either not installed on your system or it's not added to your system's PATH. Here are the steps to install Minikube and start a local Kubernetes cluster:

Installing Minikube:

  1. Download Minikube:

    On macOS, you can use Homebrew:

    brew install minikube

    On Linux, you can use the following commands:

    curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
    sudo install minikube-linux-amd64 /usr/local/bin/minikube

    On Windows, using Chocolatey:

    choco install minikube

    Alternatively, you can visit the Minikube releases page to download the binary for your platform.

    image

  2. Add Minikube to PATH:

    If you manually downloaded Minikube or if the installation method you used didn't add Minikube to your PATH automatically, you might need to add it manually. Here's how you can do it on macOS or Linux:

    sudo mv minikube-linux-amd64 /usr/local/bin/minikube
    sudo chmod +x /usr/local/bin/minikube

    On Windows, ensure that the directory containing the minikube.exe is in your PATH environment variable.

Starting Minikube:

Once Minikube is installed, you can start it using:

minikube start

image

This command initializes a local Kubernetes cluster using Minikube. The first time you run this command, Minikube will download the necessary Kubernetes images, which might take some time depending on your internet connection.

After starting Minikube, you can check its status to ensure it's running:

minikube status

image

You should see output indicating that Minikube is running, and you can then proceed with deploying your applications to it using kubectl.

Remember, for detailed instructions and troubleshooting, always refer to the official Minikube documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment