- Introduction
- Kubernetes Basics
- Local Setup using Minikube
- Essential Kubernetes Commands
- Kubernetes Architecture & Concepts
- Interview Questions
- Additional Resources
✅ A: Kubernetes is the industry-standard container orchestration platform, widely used in production environments to manage containerized applications efficiently.
✅ A: Major tech companies (Google, Amazon, Microsoft, etc.), startups, and enterprises that deploy microservices architectures.
- Pods: The smallest deployable unit in Kubernetes, containing one or more containers.
- Nodes: Machines (physical/virtual) that run workloads.
- Cluster: A set of nodes managed by Kubernetes.
- Namespace: A way to divide cluster resources between multiple users.
- Services: Allow communication between different parts of an application.
- Install Docker
sudo apt update sudo apt install docker.io -y
- Install kubectl (Kubernetes CLI)
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" chmod +x kubectl sudo mv kubectl /usr/local/bin/ - Install Minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start --driver=dockerkubectl get nodeskubectl create deployment hello-node --image=k8s.gcr.io/echoserver:1.4
kubectl expose deployment hello-node --type=NodePort --port=8080minikube service hello-node- Get cluster info:
kubectl cluster-info - List nodes:
kubectl get nodes - List pods:
kubectl get pods - Describe a pod:
kubectl describe pod <pod-name> - Delete a pod:
kubectl delete pod <pod-name> - Deploy an app:
kubectl apply -f deployment.yaml
+-----------------+ +-----------------+
| Master Node | | Worker Node |
+-----------------+ +-----------------+
| API Server | | Kubelet |
| Controller | | Container Runtime |
| Scheduler | | Pods |
+-----------------+ +-----------------+
- Master Node: Controls the cluster, runs the API server, scheduler, and controllers.
- Worker Nodes: Execute applications inside pods.
- Kubelet: Manages the lifecycle of pods on each node.
- Kube Proxy: Handles networking between pods and external services.
- What is Kubernetes, and why is it used?
- Explain the difference between Pods and Nodes.
- What are Namespaces in Kubernetes?
- How does Kubernetes handle networking?
- How does Kubernetes perform load balancing?
- What are the different types of services in Kubernetes?
- Explain the Kubernetes control plane components.
- How can you scale applications in Kubernetes?
- What is a DaemonSet, and when would you use it?
🚀 Follow this guide to master Kubernetes from beginner to advanced levels!