Tarek.
← All posts

Kubernetes for Developers: What You Actually Need to Know

· 1 min read · Admin

Kubernetes Without the Overwhelm

Kubernetes has a reputation for complexity. As a developer, you don't need to master everything.

Core Concepts

Pods

A Pod is the smallest deployable unit — a wrapper around one or more containers.

Deployments

Deployments manage the desired state: rolling updates, rollbacks, and scaling.

yaml
apiVersion: apps/v1kind: Deploymentmetadata:  name: my-appspec:  replicas: 3  selector:    matchLabels:      app: my-app  template:    spec:      containers:      - name: app        image: my-app:v2        resources:          requests:            memory: "128Mi"            cpu: "100m"

Debugging in Production

bash
kubectl get pods -l app=my-appkubectl logs -l app=my-app --tail=100 -fkubectl exec -it pod/my-app-xyz -- /bin/shkubectl port-forward pod/my-app-xyz 3000:3000

The 80/20 of Kubernetes

  • Deployments, Services, and ConfigMaps cover 80% of use cases

  • HPA for scaling

  • Ingress for external traffic routing

  • Helm charts for packaging complex applications