Kubernetes Basics
Objective
Understand Kubernetes architecture and deploy your first workloads.
Tools & Technologies
kubectlminikubek8s
Key Commands
minikube startkubectl get nodeskubectl apply -f deployment.yamlkubectl get pods -o widekubectl describe pod mypodLab Steps
01
Cluster Setup
Start a local Kubernetes cluster with minikube.
02
Deployments
Create and scale Deployments using kubectl apply.
03
Services
Expose Deployments with ClusterIP, NodePort, and LoadBalancer services.
04
Namespaces
Organize workloads with namespaces for isolation.
Challenges Encountered
- minikube requires adequate RAM — minimum 2GB
- ImagePullBackOff when image name is incorrect
Key Takeaways
- Kubernetes ensures desired state — always declare intent, not steps
- kubectl describe and kubectl logs are the first debugging tools