liveBook · Manning

Minikube

As explained in Kubernetes for Developers

Minikube is a tool for running a local Kubernetes cluster, commonly with a single node and optional multi-node configurations.

Minikube runs a Kubernetes cluster locally for testing deployments without using a cloud environment. It commonly starts as a single-node cluster, but multinode configurations help test behavior that depends on several nodes. section 3.4 section 3.4.2

Install Minikube for your system, then start the desired cluster. The start command automatically configures kubectl to use the Minikube context, so subsequent kubectl commands target the local cluster. section 3.4.2

Use the local cluster as a regular Kubernetes environment:

  • Run kubectl get nodes to verify connectivity and confirm that the nodes are Ready. section 3.4.2
  • Apply the same declarative configuration locally that will later be deployed to production. section 3.4.3
  • Forward a Service port with kubectl port-forward when a local LoadBalancer has no external IP. section 3.4.3
  • Stop Minikube to release CPU and memory, or delete it to remove cluster data and recreate it with different settings. section 3.4.2

Testing a local Service

Start a multinode cluster, deploy a Deployment and Service from YAML, then expose the Service locally with kubectl port-forward service/timeserver 8080:80 and browse to http://localhost:8080. Minikube also provides minikube service timeserver as another way to route traffic. section 3.4.3

How Kubernetes for Developers covers it

How deep it goes
Explains installation, startup, context selection, verification, service access, and cleanup, stopping short of exhaustive configuration.
Examples
Uses multinode startup, node inspection, declarative deployment, port forwarding, Minikube service routing, and local image loading examples.
What it assumes
Assumes basic kubectl and Kubernetes configuration familiarity while demonstrating local cluster setup and verification.
What you can do after
Operate a local Kubernetes cluster, deploy configurations, verify nodes, access Services, and reset cluster resources.
How it connects
Connects Minikube with Kubernetes, kubectl, Docker Desktop, Docker Compose, Deployments, Services, and port forwarding.

Also explained in

Compare how 3 books explain Minikube →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kubernetes for Developers. The section links point to the parts of the book it draws on.