Minikube

minikube quickly sets up a local Kubernetes cluster on MacOS Linux, or Windows. After installing minikube one can simple create a local kubernetes cluster and begin interacting with it as if it were a production grade cluster with the safety that anything they break will only effect their local environment and can be easily recreated.

Basic Usage

minikube has a relatively simple set of commands, most of which can be easily learned from the built in help menus, but here are a few that important to know:

  • minikube start: Starts your minikube cluster or creates a new one if one doesn't exist.
    • minikube start --node=<num>: By appending --node you can specify how many nodes your kubernetes cluster should have.
  • minikube status: Prints the current status of the cluster if one currently exists.
  • minikube stop: Will stop your running cluster.
  • minikube delete: Will delete your minikube cluster.

Other Commands

Here are some other helpful commands to know when working with minikube:

  • minikube dashboard: Access the Kubernetes dashboard running within the minikube cluster. This will also install the dashboard if it is not already present.
  • minikube addons: Manages minikube addons.
    • enable <name>: Enables the addon specified. Installs it if it is not already present on cluster
    • disable <name>: Disables the addon specified.
    • list: Lists all available minikube addons as well as their current status.
This page was last updated: 2025-01-11 Sat 11:51. Source