Niranjan DevOps and SRENiranjan DevOps & SRE
Menu

$ kubectl get pods -A

Kubernetes Guide for Beginners: From Docker to Production

Learn Kubernetes step by step. Understand pods, services, deployments, ingress, and deploy your first application to a Kubernetes cluster.

Kubernetes9 min read2026-04-03

Key Takeaways

  • Start with understanding Pods - the smallest deployable unit
  • Use Deployments for rolling updates and rollback
  • Services expose your pods to network traffic
  • Use Helm charts for reproducible deployments
KubernetesK8sDockerBeginnersPodsServices

What is Kubernetes?

Kubernetes (K8s) automates deployment, scaling, and management of containerized applications.

Architecture

Two main components: Control Plane (API Server, Scheduler, etcd) manages the cluster. Worker Nodes run your workloads via Kubelet and Kube Proxy.

Core Concepts

Pods: Smallest unit, runs one or more containers.
Deployments: Manages Pods, handles scaling, updates, rollback.
Services: Exposes Pods to network traffic.
Ingress: External access to services.
Helm: Package manager for K8s.

Basic Commands

Get all pods: kubectl get pods
Apply manifest: kubectl apply -f deployment.yaml
Scale deployment: kubectl scale deployment my-app --replicas=5
View logs: kubectl logs -f deployment/my-app
Execute into pod: kubectl exec -it my-app-pod -- /bin/bash

Helm Basics

Install chart: helm install my-release bitnami/nginx
Upgrade: helm upgrade my-release bitnami/nginx
Rollback: helm rollback my-release 1

Next Steps

Practice with Minikube or Kind locally, then deploy a real application.