Skip to content

Kubernetes — Basics

minikube is a tool that creates a Kubernetes cluster locally for testing purposes — a quick way to get a working cluster without needing real cluster infrastructure.

kubectl is the command-line tool used to manage that cluster (local ones like minikube, or a real one).

Start minikube:

minikube start

Create a deployment from an image:

kubectl create deployment --image="image" "name"

List all deployments:

kubectl get deployments

List all pods:

kubectl get pods

List all services:

kubectl get services

List all ReplicaSets:

kubectl get replicaset

List everything at once:

kubectl get all

Apply a manifest file to the cluster:

kubectl apply -f pod.yaml

Show detailed information about a specific pod:

kubectl describe pod "pod_name"