π What is Minikube (1-liner)
Minikube lets you run a local Kubernetes cluster on your laptop for learning, testing, and dev work.
π§ Installation Check
minikube version
kubectl version --clientIf both work β youβre good.
βΆοΈ Start & Stop Minikube
minikube startStart with specific driver:
minikube start --driver=dockerStop cluster:
minikube stopDelete cluster (reset everything):
minikube deleteCheck status:
minikube statusπ§ Basic Cluster Info
kubectl cluster-info
kubectl get nodes
kubectl get pods -Aπ¦ Deploy Your First App
Example: nginx
kubectl create deployment nginx --image=nginxCheck deployment:
kubectl get deployments
kubectl get podsExpose app:
kubectl expose deployment nginx --type=NodePort --port=80Access app:
minikube service nginxπ Services & Networking
List services:
kubectl get svcGet service URL manually:
minikube service nginx --urlπ Debugging & Logs
Pod logs:
kubectl logs <pod-name>Describe pod:
kubectl describe pod <pod-name>Exec into pod:
kubectl exec -it <pod-name> -- /bin/bashπ§° Useful Minikube Addons
Enable addons:
minikube addons enable dashboard
minikube addons enable metrics-serverList addons:
minikube addons listOpen dashboard:
minikube dashboardπ³ Use Minikube Docker Daemon (Very Important)
So you donβt need Docker Hub for local images π
eval $(minikube docker-env)Now build image:
docker build -t myapp:latest .Use it in Kubernetes without pushing.
π Apply YAML Files
kubectl apply -f deployment.yaml
kubectl apply -f service.yamlDelete resources:
kubectl delete -f deployment.yamlβοΈ Scaling & Rollouts
Scale pods:
kubectl scale deployment nginx --replicas=3Check rollout:
kubectl rollout status deployment nginxRollback:
kubectl rollout undo deployment nginxπ§ͺ Handy Cheatsheet
kubectl get all
kubectl get pods -o wide
kubectl delete pod <pod-name>
kubectl delete deployment nginx


