Architecture Overview
Control plane schedules work; worker nodes run kubelet and container runtime.
Deploy workloads on Kubernetes: pods, services, storage, and autoscaling fundamentals.
Control plane schedules work; worker nodes run kubelet and container runtime.
Pods are the smallest deployable unit; Services provide stable networking.
API server, etcd, scheduler, and controller-manager coordinate cluster state.
Deployments manage ReplicaSets for rolling updates.
apiVersion: apps/v1
kind: Deployment
metadata:
name: api
spec:
replicas: 3
selector:
matchLabels:
app: apiClusterIP for internal traffic; NodePort and LoadBalancer expose externally.
Restrict pod-to-pod traffic with label selectors.
PVs and PVCs decouple storage from pod lifecycle.
Externalize config; never commit secrets to Git.
Ordered deploy and stable network IDs for databases.
HPA scales replicas based on CPU or custom metrics.
Use metrics-server; export to Prometheus and Grafana.
Centralize with Fluent Bit or Loki; correlate by pod labels.