0
0
Kubernetesdevops~30 mins

Setting up a local cluster (minikube, kind) in Kubernetes - Try It Yourself

Choose your learning style9 modes available
Setting up a Local Kubernetes Cluster with Minikube
📖 Scenario: You want to learn how to create a local Kubernetes cluster on your computer. This helps you practice Kubernetes commands and test your applications without needing a cloud provider.Note: These instructions are for Linux (amd64) systems. For macOS or Windows, check the official Minikube docs. Ensure Docker or another hypervisor (e.g., VirtualBox) is installed for the cluster driver.We will use Minikube, a tool that runs Kubernetes locally inside a virtual machine or container.
🎯 Goal: By the end, you will have a running local Kubernetes cluster using Minikube and verify it is working by checking the cluster status.
📋 What You'll Learn
Linux (amd64) system
Docker or another hypervisor installed
Basic terminal or command prompt usage
💡 Why This Matters
🌍 Real World
Developers use local Kubernetes clusters to test and learn Kubernetes without needing cloud resources.
💼 Career
Knowing how to set up and manage local clusters is a key skill for DevOps engineers and cloud-native developers.
Progress0 / 4 steps
1
Install Minikube and kubectl

Download and install Minikube and kubectl by running these commands:

  • curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
  • sudo install minikube-linux-amd64 /usr/local/bin/minikube
  • curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
  • sudo install kubectl /usr/local/bin/kubectl
Kubernetes
Need a hint?

Download the Minikube and kubectl binaries with curl, then install them to /usr/local/bin/ using sudo install.

2
Start the Minikube Cluster
Start your local Kubernetes cluster by running minikube start in your terminal.
Kubernetes
Need a hint?

Use the minikube start command to launch the cluster.

3
Check Cluster Status
Check if your Minikube cluster is running by executing minikube status.
Kubernetes
Need a hint?

Use minikube status to see if the cluster is running.

4
Verify Kubernetes Nodes
Use kubectl get nodes to list the nodes in your local Kubernetes cluster.
Kubernetes
Need a hint?

Run kubectl get nodes to see the node list and their status.