Illustrated Kubernetes: From Architecture to Production Operations
A comprehensive visual guide covering Kubernetes architecture, Pods, workloads, networking, storage, security, deployment strategies, cluster operations, and essential kubectl commands for building and running production clusters.
Reading font
Architecture Overview
Kubernetes follows a control-plane / worker-node model. The control plane (API server, scheduler, controller manager, etcd) maintains desired state; worker nodes run Pods via kubelet, container runtime, and kube-proxy. Resources are declared in YAML and continuously reconciled by controllers.
Pods and Workloads
A Pod is the smallest deployable unit, holding one or more containers sharing network and storage. Workload controllers — Deployment, StatefulSet, DaemonSet, Job, CronJob — manage Pod lifecycles: rolling updates, scaling, ordered deployment, node-local daemons, and batch jobs. The scheduler places Pods based on resource requests, node selectors, affinity/anti-affinity, taints/tolerations, and topology spread constraints.
Configuration and Storage
ConfigMap stores non-sensitive configuration; Secret holds sensitive data (base64-encoded). Both inject via environment variables or volume mounts. Persistent storage uses PersistentVolume (PV) and PersistentVolumeClaim (PVC) abstraction; underlying provisioners include cloud block storage, NFS, CSI drivers, and local volumes.
Networking and Service Access
Service provides stable VIP/DNS for Pod sets. Types: ClusterIP (internal), NodePort (node port), LoadBalancer (external LB), ExternalName (DNS alias). kube-proxy implements IPVS/iptables forwarding. Ingress / Gateway API manages L7 routing, TLS termination, and path-based rules. CNI plugins (Calico, Cilium, Flannel) implement Pod-to-Pod networking; NetworkPolicy enforces namespace/pod-level firewall rules.
Security
Authentication: X.509 client certs, bearer tokens, OIDC, webhook. Authorization: RBAC (Role/ClusterRole + RoleBinding/ClusterBinding) with verbs on resources. Admission controllers (NamespaceLifecycle, LimitRanger, ResourceQuota, ValidatingAdmissionWebhook, MutatingAdmissionWebhook) intercept requests before persistence.
Application Deployment and Management
Helm packages charts (templated YAML + values). Kustomize overlays base manifests without templating. GitOps (Argo CD, Flux) continuously syncs cluster state from Git. Deployments use rolling updates (maxSurge, maxUnavailable) with readiness probes; rollout history enables instant rollback via kubectl rollout undo.
Cluster Building and Operations
Bootstrap: kubeadm or managed services (EKS, GKE, AKS). Install CNI, CoreDNS, metrics-server. Autoscaling: HorizontalPodAutoscaler (CPU/custom metrics), VerticalPodAutoscaler, Cluster Autoscaler (node groups). HA: stacked etcd (odd quorum), multiple control-plane nodes, load-balanced API server. Observability: Prometheus metrics, Loki/Elasticsearch logs, kube-state-metrics, events. Troubleshooting flow: get → describe → logs → exec; node maintenance via cordon / drain / uncordon.
Extension Mechanisms
CustomResourceDefinition (CRD) extends the API; custom controllers reconcile spec→status. Operator pattern embeds domain logic (backup, upgrade, failover) for stateful services (databases, message queues).
Essential kubectl Commands
get List resources
describe Show details + events
logs Container logs
exec Run command in container
apply Create/update from YAML
diff Preview changes
delete Remove resource
edit Live edit
patch Partial update
scale Replica count
autoscale Create HPA
rollout History/pause/restart/undo
port-forward Local tunnel
expose Create Service
top Resource usage
cordon Mark unschedulable
drain Evict workloads
uncordon Restore scheduling
config Context/kubeconfig
auth Check permissionsSummary Diagram
The final illustration connects all layers: architecture → workloads → config/storage → network → security → deployment → operations → extensions, providing a single mental model for Kubernetes mastery.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.