59 articles
Knowledge Base
Kubernetes
59 articles in the Kubernetes category · page 1 of 3.
- Resource requests and limits — getting Pod sizing right Set CPU and memory requests and limits on your Kubernetes containers so Pods land on nodes that can hold them and stop getting killed or slowed without warning. It also explains OOMKilled errors, CPU throttling, quality-of-service (QoS) classes and the namespace guardrails that keep one team from using up the cluster.
- Right-size Kubernetes CPU and memory requests with the Vertical Pod Autoscaler Use the Kubernetes Vertical Pod Autoscaler (VPA) to set CPU and memory requests from what your pods really use. You install it, read its advice safely in Off mode first, then let it apply changes with bounds and a PodDisruptionBudget so pods are not all restarted at once.
- KEDA: autoscale Kubernetes workloads on queue depth, not CPU KEDA (Kubernetes Event-Driven Autoscaling) adds and removes worker pods based on how much work is waiting, such as messages in a RabbitMQ queue or the result of a Prometheus query. Set it up on your cluster, scale a worker Deployment on queue depth, and let it drop to zero replicas when the queue is empty.
- Kubernetes topology spread constraints — even pod placement across zones and nodes Learn how to use Kubernetes topology spread constraints to spread your pods evenly across zones and nodes, so one outage cannot take down every copy of a service. The guide explains the placement math, the key settings, cluster-wide defaults, and how to fix pods stuck in Pending.
- Bootstrap a Kubernetes cluster on Talos Linux (no SSH, no shell) A practical Talos Linux Kubernetes cluster bootstrap: generate machine config with talosctl, apply it to nodes, run talosctl bootstrap, pull the kubeconfig, join workers, and debug an OS you cannot log into.
- Kubernetes init containers: ordering pod startup properly Init containers run to completion, in order, before any app container starts. Learn how their resource requests are computed, how failures surface as Init:Error, and when a native sidecar is the better answer.
- Kubernetes ResourceQuota and LimitRange: govern namespace capacity Set a namespace-wide ResourceQuota, add LimitRange defaults so existing workloads still get admitted, use object-count and per-StorageClass quotas and scope selectors, and read kubectl describe quota.
- Kubernetes PriorityClass and preemption: keep critical pods schedulable Create a Kubernetes PriorityClass, understand how pod preemption picks its victims, and read the Preempted and FailedScheduling events so critical workloads still get scheduled on a full cluster.
- Track a Kubernetes rolling update and roll it back with kubectl rollout Watch a Deployment roll out with kubectl rollout status, inspect its revision history, and roll back a bad release with kubectl rollout undo — including how revisions and ReplicaSets drive it.
- kubectl debug and ephemeral containers — debug running, distroless, and crashlooping pods Use a kubectl debug ephemeral container to get a shell and tools next to a container that has none — inspect running pods, distroless images, and crashloops without a rebuild.
- Kubernetes liveness, readiness, and startup probes explained Liveness, readiness, and startup probes each make the kubelet do something different. Learn what each triggers and how to configure timing so probes stop causing restart storms.
- Kubernetes pod stuck in Pending — diagnose and fix an unschedulable pod A Kubernetes pod stuck in Pending is almost always a scheduling failure. Read the FailedScheduling event with kubectl describe pod, then fix the exact cause: insufficient CPU/memory, taints, node selectors, unbound PVCs, or no nodes at all.
- Migrate from ingress-nginx to the Gateway API — HTTPRoute, filters, and a reversible cutover A working ingress to Gateway API migration: install the Gateway API CRDs, choose an implementation, translate a real Ingress into Gateway and HTTPRoute with an httproute example, run both paths in parallel behind DNS, and roll back.
- How to Back Up and Restore etcd with etcdctl Snapshots A practitioner guide to etcd backup and restore: locate your endpoints and certs, take a verified snapshot with etcdctl, automate it, and rebuild a kubeadm control plane with etcdutl.
- Build and deploy your first Helm chart: a beginner's guide Build a Helm chart from scratch and deploy it to Kubernetes. Chart structure, templating with values, helm install, upgrade, and rollback, plus lint and dry-run previews before anything reaches the cluster.
- Set up a Horizontal Pod Autoscaler (HPA) in Kubernetes A complete guide to the Kubernetes Horizontal Pod Autoscaler: install metrics-server, write an autoscaling/v2 HPA, scale on CPU and memory, and prove it scales under load.
- Diagnosing CrashLoopBackOff in Kubernetes by exit code CrashLoopBackOff is a symptom, not a cause — your container starts and exits. Read the exit code in kubectl describe, then follow it to the actual fix.
- Production observability on Kubernetes — Prometheus, Grafana, Loki, Tempo Kubernetes observability stack architecture — metrics, logs, traces wired through OpenTelemetry, sized for production cardinality, cost, and HA.
- Argo CD ApplicationSet generators for multi-cluster GitOps Use Argo CD ApplicationSet generators (List, Cluster, Git, Matrix) to template Applications across clusters, environments, and tenants without manifest sprawl.
- Graceful node drain — the runbook for taking a node out of service safely Step-by-step procedure for cordoning, draining, and replacing a Kubernetes node — handling PDB stalls, DaemonSets, local-volume pods, and the "drain hung after 10 minutes" case.
- Argo Rollouts: canary and blue/green deployments on Kubernetes Install Argo Rollouts and define canary and blue/green strategies with traffic-managed routing via Istio, ingress-nginx, or Gateway API.
- Horizontal Pod Autoscaler — scaling on metrics that matter Configure HPA correctly — metrics-server, CPU/memory targets, custom metrics from Prometheus, behavior tuning, and the requests/limits mistake that nullifies it.
- Flux image automation for GitOps-driven container updates Use Flux image-reflector and image-automation controllers to watch container registries and commit new tags into Git automatically.
- Kustomize basics — overlays without templating Layer environment overrides over a single base with Kustomize — bases, overlays, patches, generators, and the Helm-vs-Kustomize choice.