Objective

Understand Kubernetes architecture and deploy your first workloads.

Tools & Technologies

  • kubectl
  • minikube
  • k8s

Key Commands

minikube start
kubectl get nodes
kubectl apply -f deployment.yaml
kubectl get pods -o wide
kubectl describe pod mypod

Lab 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