Skip to content

Kubernetes Overview

First PublishedLast UpdatedByAtif Alam

Kubernetes (often shortened to K8s) is an open-source container orchestration platform.

It automates deploying, scaling, and managing containerized applications across clusters of machines.

  • Containers alone aren’t enough. A single docker run works for one machine, but production needs scheduling across many nodes, self-healing, load balancing, rolling updates, and secret management.
  • Kubernetes handles that orchestration. You describe the desired state (e.g. “run 3 replicas of this container”) and Kubernetes continuously works to make reality match.
  • Cluster — A set of machines (nodes) managed by Kubernetes.
  • Node — A single machine in the cluster (physical or virtual). Runs containers.
  • Pod — The smallest deployable unit; one or more containers that share network and storage.
  • Service — A stable network endpoint that routes traffic to a set of pods.
  • Deployment — Declares the desired state for pods (image, replicas, update strategy). Kubernetes creates and manages the pods.
  • Namespace — A virtual partition inside a cluster for isolating resources.
  • kubectl — The CLI tool for interacting with a Kubernetes cluster.

Guides are grouped by domain (same groups as the sidebar):

  • Architecture — Control plane, worker nodes, and how the pieces fit together.
  • Scheduling and Placement — Predicate vs priority scheduling, PriorityClass, and Pending triage vocabulary.
  • Etcd and Control Plane Health — etcd role, health signals, snapshots, and control-plane certificate rotation.
  • Core Objects — Pods, Deployments, Namespaces, Labels, and YAML anatomy.
  • Manifests — YAML structure, the four top-level fields, spec vs status, and applying manifests.
  • Networking — Services, Ingress, Gateway API vs Ingress, CNI comparison, DNS, network policies, and CoreDNS failure modes.
  • Services and Endpoints — ClusterIP datapath, EndpointSlices, kube-proxy modes, and debugging.
  • Network Policies — Default deny, allowlists, metadata egress, and CNI compatibility.
  • Sidecar Pattern — When to use sidecars, sidecar vs library trade-offs, and production rollout patterns.
  • Ingress Controllers — NGINX, Traefik, and AWS Load Balancer Controller with TLS/mTLS and cert-manager patterns.
  • Istio — Service mesh architecture, VirtualService, mTLS, and troubleshooting with istioctl.
  • Workload Types — Deployments vs StatefulSets vs DaemonSets vs Jobs and CronJob patterns.
  • Storage — Volumes, PVCs, StorageClass binding modes, topology, and Secrets.
  • Stateful Backup and Restore — Snapshots, Velero, restore drills, and RPO/RTO.
  • Helm — Package management for Kubernetes.
  • Helm Templating — Go template syntax, value injection methods, and where values come from in production.
  • Helm vs Operators vs GitOps — When to use Helm charts, operators, and Argo CD/Flux, and how they work together.
  • Argo CD — Install, Applications, App of Apps, ApplicationSets, sync waves, and multi-cluster registration.
  • Operators — CRDs, custom controllers, the reconcile loop, and building your own operator.
  • Crossplane — Cloud infrastructure as Kubernetes resources; compositions; GitOps and Terraform relationship.
  • For GitOps practice (pull model, repo layouts, Flux), see GitOps in the CI/CD section.
  • Production Platform Checklist — Layered platform checks for ownership, blast radius, delivery guardrails, and drift.
  • Production Patterns — Health checks, resource limits, noisy-neighbor mitigation, PDBs, draining, and rolling updates.
  • Autoscaling on EKS — HPA, VPA, KEDA, Cluster Autoscaler, and Karpenter; custom metrics via Prometheus or CloudWatch.
  • Production Scenarios — Scenario-based practice for production reasoning and mitigation planning.
  • Cluster Upgrades — Control plane vs nodes, add-on smoke tests, CRD compatibility, and certificate inventory.
  • Cluster Lifecycle Tools — kops, EKS variants, Cluster API, kubeadm, and other create/upgrade choices.
  • Multi-Cluster Management — Cluster API, Karmada, and GitOps fleet patterns across clusters.
  • Examples — File-oriented layouts (base workloads, Istio, kubectl vs Argo CD).
  • HA Kubernetes on Two Proxmox Hosts — Four-part lab building a host-loss-tolerant kubeadm cluster: external etcd, kube-vip, Cilium, Longhorn, and failure drills.

Docs are filed by the domain folders above. Platform teams often slice the same material by layer. Use this map when you are reasoning about ownership or designing a platform:

LayerMeaningStart Here
ClusterControl plane, nodes, lifecycle, access to the APIArchitecture, Etcd and Control Plane Health, Scheduling, Cluster Lifecycle Tools, Cluster Upgrades, Multi-Cluster, Kubeconfig, EKS
AppsWorkload APIs and traffic into applicationsCore Objects, Manifests, Workload Types, Storage, Networking, Ingress Controllers, Istio
PlatformShared services, packaging, and policyHelm, Argo CD, Operators, Crossplane, Helm vs Operators vs GitOps, GitOps practice (Flux), RBAC, Pod Security Standards, Admission Controllers, Multi-Tenancy, Autoscaling
OpsRunbooks, reliability, and reviewsProduction Patterns, Production Scenarios, Production Platform Checklist, Troubleshooting, Kubectl Reference, Architecture Review Questions