Kubernetes: Minikube on Ubuntu and Linux
Minikube on Ubuntu and Linux is the same local cluster as on other systems. The install path differs, and the Docker driver runs the cluster inside a container.
Install minikube
Download the minikube binary and place it on your path. The version is v1.39.0.
minikube versionStart the cluster
One command starts the cluster with the Docker driver. It takes a minute or two.
minikube start --driver=docker --kubernetes-version=v1.37.1Check the node is ready
The get nodes command shows the new node. Its status must read Ready.
kubectl get nodesLoad a local image the right way
Minikube v1.39.0 uses containerd by default. Load a local image into the cluster with the image load command.
minikube image load my-app:latestExample
minikube start --driver=docker --kubernetes-version=v1.37.1
kubectl get nodesKey points
- Minikube: a tool that runs a one-node Kubernetes cluster on your own machine.
- Driver: the software minikube uses to run the cluster, such as Docker.
- Prerequisite: Docker must already be installed before minikube starts.
- Use minikube start with the Docker driver and Kubernetes version v1.37.1.
- Use kubectl get nodes to check the cluster is ready.
- Local image: an image built on your machine and not yet pushed to a registry.
In this example, the first command starts a local cluster with the Docker driver. The output confirms kubectl is now pointed at it. The second command lists the nodes. The output shows one node called minikube with the status Ready.
Note
Minikube v1.39.0 uses containerd inside the node by default, not the Docker engine.
Try it Yourself
Edit the code, then press Run.
Running is simulated · Rust Playground
Exercise
How do you load a local image into minikube v1.39.0?