DEVOPS TRIBUNE ENGINEERING INTELLIGENCE FOR THE REAL WORLD
Kubernetes Official Logo
12 BATTLE-TESTED SCENARIOS • STAR METHOD RUNBOOKS

Kubernetes Interview Questions & Production Scenarios

Master senior and platform engineering interviews ($150k–$320k+). From control plane etcd split-brain recovery to zero-downtime rolling deploys, learn how to deliver crisp verbal elevator pitches, structured STAR narratives, and exact CLI runbooks.

Kubernetes Interview Scenarios: Pod Lifecycle, etcd Quorum, and Zero-Downtime Architecture Infographic
SCENARIO 01 • POD LIFECYCLE & RUNTIME

How do you troubleshoot a Pod stuck in CrashLoopBackOff? How do you distinguish between exit code 137, 1, and 127?

⚡ 30-Second Elevator Pitch

“CrashLoopBackOff is not an error itself (read our full CrashLoopBackOff SRE runbook and ImagePullBackOff guide)—it is kubelet's exponential backoff state telling us that a container repeatedly crashed after starting. I immediately inspect kubectl describe pod to examine the container's Last State: Terminated exit code. Exit 137 indicates a SIGKILL from the Linux kernel OOM killer or cgroup limit; Exit 1 indicates an unhandled application exception, missing configuration, or failed database connection; and Exit 127 indicates command not found due to a broken entrypoint binary or missing library path.”

The Mental Model: What the Exit Codes Actually Mean

When a container terminates in Linux, the process returns a status code between 0 and 255. Any code above 128 indicates termination by a fatal signal (128 + Signal Number). Signal 9 (SIGKILL) equals 137 (128 + 9). Signal 15 (SIGTERM) equals 143 (128 + 15). Knowing this arithmetic immediately isolates whether the application failed internally or the operating system killed it from the outside.

S Situation

Following a microservice release, 4 out of 10 pods in our payment processing deployment entered CrashLoopBackOff with Exit Code 137, while the remaining 6 pods stayed healthy.

T Task

Determine why identical containers exhibited divergent memory behaviors and restore 100% pod availability without blind resource over-allocation.

A Action

1. Ran kubectl logs <pod> --previous and saw heap metrics spikes right before termination.
2. Correlated with Prometheus metrics and noticed affected pods were processing large batch reconciliation payloads.
3. Identified Java heap was set to -Xmx1500m inside a 1536Mi container limit, leaving only 36MB for non-heap native memory.
4. Rebalanced container memory limit to 2048Mi and tuned JVM heap to 75% container memory using -XX:MaxRAMPercentage=75.0.

R Result

CrashLoopBackOff was completely eliminated, batch jobs completed in 4.2 seconds, and pod memory headroom maintained a stable 25% safety margin.

kubectl CLI — Container Exit Code & OOM Killer Triage
# 1. Fetch exact container exit code and reason
kubectl get pod -l app=payment -o custom-columns='NAME:.metadata.name,STATUS:.status.phase,EXIT:.status.containerStatuses[*].lastState.terminated.exitCode,REASON:.status.containerStatuses[*].lastState.terminated.reason'

# 2. Inspect previous container logs before crash
kubectl logs payment-api-6f98-k2m9x --previous --tail=100

# 3. Check node dmesg to confirm kernel OOM killer
kubectl debug node/ip-10-0-1-12.ec2.internal -it --image=busybox -- chroot /host dmesg -T | grep -E "oom-killer|killed process"
💡 Senior Engineer Pro-Tip

The Rookie Answer: “I run kubectl delete pod to make it restart.”
The Senior Answer: Differentiate between an application-level OOM (where the language runtime throws an OutOfMemoryError and exits with code 1) versus an OS-level cgroup kill (where the kernel fires SIGKILL and sets exit code 137). Only exit 137 points to container resource limits.

SCENARIO 02 • ZERO-DOWNTIME DEPLOYMENTS

Users report occasional 502 Bad Gateway and connection reset errors during a Kubernetes rolling update. What causes this and how do you fix it?

⚡ 30-Second Elevator Pitch

“502 errors during rolling updates occur due to a race condition between Pod termination and Ingress/iptables endpoint deregistration (master zero-downtime routing in our Canary Deployments Guide and validate manifests with the YAML validator). When a pod is marked for termination, Kubernetes sends SIGTERM simultaneously with removing the pod IP from the Service Endpoints object. However, kube-proxy, Ingress controllers, and external load balancers require 2 to 10 seconds to propagate this change across all nodes. If the pod stops accepting traffic immediately upon receiving SIGTERM, requests still in-flight or routed during that propagation window hit a closed port, resulting in 502/504 errors. We resolve this by adding a preStop sleep hook and configuring graceful HTTP keep-alive connection draining.”

S Situation

During automated continuous deployments, our checkout service experienced a 0.2% drop in HTTP success rates, causing 20–50 failed payment attempts per deploy.

T Task

Ensure zero dropped connections during rolling updates without slowing down CI/CD pipeline completion times unnecessarily.

A Action

1. Added a lifecycle.preStop.exec: ["/bin/sh", "-c", "sleep 15"] hook to hold the container open.
2. Configured application web server graceful shutdown timeout to 30 seconds.
3. Set terminationGracePeriodSeconds: 45 to prevent premature SIGKILL.
4. Tuned Deployment maxSurge: 25% and maxUnavailable: 0 to guarantee reserve capacity.

R Result

HTTP 502 errors dropped to absolute zero during 15 daily production deployments, completely eliminating user-facing deployment glitches.

Deployment YAML — PreStop Graceful Shutdown Lifecycle
# Deployment YAML Lifecycle Configuration
spec:
  containers:
  - name: checkout-api
    lifecycle:
      preStop:
        exec:
          command: ["/bin/sh", "-c", "sleep 15"]
  terminationGracePeriodSeconds: 45
💡 Senior Engineer Pro-Tip

Explain the exact lifecycle timing: sleep 15 gives kube-proxy and AWS ALB Target Groups enough time to execute their health check failure/deregistration cycle. Only after deregistration completes does the application receive SIGTERM, finish in-flight requests, and cleanly exit.

SCENARIO 03 • CONTROL PLANE RELIABILITY

In a 3-node etcd cluster, two nodes fail simultaneously. What happens to the Kubernetes cluster, and how do you recover?

⚡ 30-Second Elevator Pitch

“etcd uses the Raft consensus algorithm, which requires a strict majority quorum: (N/2) + 1. In a 3-node cluster, quorum is 2. If 2 nodes fail, the cluster loses quorum. When quorum is lost, etcd becomes strictly read-only or rejects writes entirely, meaning the Kubernetes API server cannot create, update, or schedule any new resources. However, existing worker node workloads continue running uninterrupted because kubelet and containerd continue executing current specs. Recovery requires either bringing one failed member back online or re-initializing etcd as a single-node cluster using etcdctl member remove or restoring from an automated S3 snapshot.”

S Situation

An availability zone power outage and a concurrent disk corruption knocked out 2 out of 3 etcd control plane instances on a self-managed bare-metal cluster.

T Task

Restore control plane write availability without losing state or corrupting ongoing workload metadata.

A Action

1. Confirmed worker node data planes were functioning normally via external probes.
2. On the surviving control plane node, executed etcdctl snapshot save to secure current state.
3. Restarted etcd with --force-new-cluster flag to reset Raft membership to 1.
4. Provisioned 2 new control plane instances and cleanly rejoined them using etcdctl member add.

R Result

API server write operations recovered in 18 minutes with zero customer transaction loss, followed by full 3-node HA quorum re-establishment.

etcdctl CLI — Snapshot Restore & Cluster Initialization
# 1. Check etcd health and cluster membership
etcdctl endpoint health --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key

# 2. Capture immediate backup before modifying membership
ETCDCTL_API=3 etcdctl snapshot save /var/lib/etcd-backup/pre-recovery.db

# 3. Restore snapshot to initialize clean cluster
ETCDCTL_API=3 etcdctl snapshot restore /var/lib/etcd-backup/pre-recovery.db --name master-1 --initial-cluster master-1=https://10.0.1.10:2380 --initial-advertise-peer-urls https://10.0.1.10:2380
💡 Senior Engineer Pro-Tip

Clarify to the interviewer that managed Kubernetes services (AWS EKS, Google GKE, Azure AKS) manage etcd multi-AZ replication, automated snapshots, and quorum healing transparently under their SLA. For managed control planes, focus on IAM, quota, and control plane log metrics in CloudWatch/Datadog.

SCENARIO 04 • ADMISSION CONTROLLERS

A Mutating or Validating Webhook deployment crashes. Suddenly, no one in the company can deploy or scale any pods across the cluster. What happened?

⚡ 30-Second Elevator Pitch

“When a ValidatingWebhookConfiguration or MutatingWebhookConfiguration is configured with failurePolicy: Fail (which is the default on many security scanners), the Kubernetes API server requires a 200 OK HTTP response from the webhook service before persisting any object into etcd. If the webhook pod crashes, runs out of memory, or has an expired TLS certificate, every API creation request times out and fails. Triage involves inspecting kubectl get validatingwebhookconfigurations and either switching failurePolicy: Ignore or temporarily deleting the webhook configuration to unfreeze the cluster while root-causing the webhook service.”

S Situation

During an automated cert-manager rotation, the webhook service TLS certificate expired, instantly freezing all CI/CD deployments and pod autoscaling across a 120-node cluster.

T Task

Immediately unblock cluster deployments while isolating the broken certificate chain.

A Action

1. Inspected kube-apiserver logs: x509: certificate has expired or is not yet valid.
2. Ran kubectl patch validatingwebhookconfiguration sec-webhook --type=merge -p '{"webhooks":[{"name":"verify.sec.io","failurePolicy":"Ignore"}]}'.
3. Cleanly renewed the cert-manager CA secret and bounced the webhook controller.

R Result

Deployment freeze was resolved in under 3 minutes, followed by permanent auto-renewal monitoring alert configurations.

CoreDNS ConfigMap & Prometheus Metrics Query
# 1. Identify active webhook configurations
kubectl get validatingwebhookconfigurations,mutatingwebhookconfigurations

# 2. Check failure policy and timeout seconds
kubectl get validatingwebhookconfiguration custom-gatekeeper -o jsonpath='{range .webhooks[*]}{.name}{"\t"}{.failurePolicy}{"\tTimeout:"}{.timeoutSeconds}{"\n"}{end}'

# 3. Emergency bypass: patch failurePolicy to Ignore
kubectl patch validatingwebhookconfiguration custom-gatekeeper --type='json' -p='[{"op": "replace", "path": "/webhooks/0/failurePolicy", "value": "Ignore"}]'
💡 Senior Engineer Pro-Tip

Best practice architecture: Always configure webhooks to ignore their own namespace (e.g. namespaceSelector: matchExpressions: [{key: control-plane, operator: NotIn, values: ["true"]}]). If a webhook intercepts its own namespace, it will block its own pods from restarting, creating an unresolvable catch-22 deadlock.

SCENARIO 05 • NETWORKING & DNS

Applications in Kubernetes experience random 5-second HTTP request timeouts when communicating with external APIs. What is the root cause?

⚡ 30-Second Elevator Pitch

“This is almost always the classic ndots:5 DNS resolution penalty combined with Linux UDP conntrack race conditions. By default, /etc/resolv.conf in a Kubernetes pod sets ndots:5. For any domain with fewer than 5 dots (like api.stripe.com with 2 dots), the resolver first tries appending local search domains: api.stripe.com.default.svc.cluster.local, then .svc.cluster.local, etc. This multiplies DNS requests 4x to 8x. Furthermore, Linux glibc issues A and AAAA queries in parallel over UDP on the same socket; Linux Netfilter connection tracking drops the second packet on port collisions, forcing an exact 5-second UDP timeout. We solve this by adding a trailing dot (api.stripe.com.), configuring NodeLocal DNSCache, or tuning dnsConfig.options: [{name: ndots, value: "2"}].”

S Situation

During morning traffic peaks, external payment gateway calls experienced sporadic 5,005ms latency spikes, tripping circuit breakers.

T Task

Eliminate the 5-second latency tail without modifying third-party external provider API contracts.

A Action

1. Captured tcpdump inside the pod confirming 5000ms delay between dropped AAAA responses.
2. Deployed NodeLocal DNSCache DaemonSet to cache queries locally on each node.
3. Configured dnsConfig.options: [{name: ndots, value: "2"}] in workload Helm charts.

R Result

CoreDNS query volume plummeted by 78%, and 5-second latency timeouts dropped to zero permanently.

💡 Senior Engineer Pro-Tip

Mention the trailing dot trick: Writing https://api.stripe.com./v1/charges (with a dot after com) forces the DNS resolver to treat it as an absolute Fully Qualified Domain Name (FQDN), bypassing the entire ndots search list in one stroke without modifying cluster infrastructure.

SCENARIO 06 • STORAGE & CSI INTERNALS

A StatefulSet pod is rescheduled to a new node, but stays stuck in ContainerCreating with 'Multi-Attach error for volume'. How do you resolve this?

⚡ 30-Second Elevator Pitch

“This occurs with ReadWriteOnce (RWO) storage volumes like AWS EBS or GCP Persistent Disks. When a node crashes or becomes NotReady, Kubernetes attempts to reschedule the pod onto a healthy node. However, the cloud provider's storage controller still sees the underlying block device attached to the original crashed node. Because EBS cannot be attached to two instances simultaneously, the Kubernetes VolumeAttachment controller blocks attachment to prevent filesystem corruption. Triage involves verifying node health, ensuring the CSI driver detached cleanly, or forcefully terminating the dead node instance so AWS releases the EBS attachment.”

S Situation

A primary PostgreSQL pod failed over after an AWS node hardware freeze, but was blocked in ContainerCreating for 16 minutes with VolumeAttachment conflicts.

T Task

Force volume release and complete pod attachment without corrupting the PostgreSQL data directory.

A Action

1. Checked kubectl get volumeattachment and identified the stale attachment object.
2. Confirmed the old EC2 host was marked NotReady.
3. Force-terminated the dead EC2 instance via AWS CLI, triggering automatic EBS detachment.
4. Kubernetes VolumeAttachment immediately succeeded on the new worker node.

R Result

Database mounted cleanly, PostgreSQL recovered WAL journals in 12 seconds, and full database operations were restored.

💡 Senior Engineer Pro-Tip

Never delete a VolumeAttachment object manually with --force unless you have verified the old node is 100% dead. If both nodes attempt to write to an ext4 or XFS filesystem concurrently, silent filesystem corruption is virtually guaranteed.

SCENARIO 07 • RESOURCE MANAGEMENT & QOS

Dozens of Pods suddenly show status Evicted on several worker nodes. What triggered this, and how does kubelet prioritize which pods to kill?

⚡ 30-Second Elevator Pitch

“Pod eviction is triggered directly by the node's local kubelet when available system resources cross hard or soft eviction thresholds—most commonly memory.available < 100Mi or nodefs.available < 10%. When memory or disk runs out, kubelet does not evict pods randomly; it prioritizes based on Quality of Service (QoS) classes and memory consumption relative to requests. BestEffort pods (no requests/limits) are evicted first. Burstable pods exceeding their memory requests are evicted next. Guaranteed pods (requests equal limits) are only evicted as an absolute last resort if system daemons exceed reserved thresholds.”

S Situation

Unrotated application log files filled the root volume on 3 worker nodes, triggering DiskPressure and evicting 45 microservice pods simultaneously.

T Task

Halt eviction cascading, restore node health, and prevent future disk pressure cascades.

A Action

1. Ran kubectl describe node identifying Conditions: DiskPressure=True.
2. Discovered containers writing stdout to /var/log/pods without logrotate size limits.
3. Configured kubelet container log max size: containerLogMaxSize: 50Mi and containerLogMaxFiles: 3.
4. Separated container storage onto dedicated ephemeral NVMe volumes.

R Result

Disk utilization dropped from 94% to 28%, eviction stopped, and all evicted pods were re-scheduled across available cluster capacity.

💡 Senior Engineer Pro-Tip

Explain the difference between Kubelet Eviction and the Linux Kernel OOM Killer. Kubelet eviction proactively terminates pods and updates status to Evicted; the Linux kernel OOM killer fires abruptly without Kubernetes awareness, killing individual processes and producing exit code 137.

SCENARIO 08 • CLUSTER SECURITY

How do you implement a default-deny NetworkPolicy in a production namespace without breaking CoreDNS or critical cloud APIs?

⚡ 30-Second Elevator Pitch

“A default-deny egress NetworkPolicy cuts off all outbound network traffic from every pod in that namespace. If you apply a standard podSelector: {} egress block without explicit allowances, every pod immediately loses access to CoreDNS (port 53 UDP/TCP) and the Kubernetes API server (port 443). To implement safely, you must pair the default-deny policy with explicit egress rules allowing UDP/TCP port 53 to kube-dns in the kube-system namespace, as well as explicit rules for cloud metadata (169.254.169.254) or internal service CIDRs.”

S Situation

A compliance audit mandated PCI-DSS microsegmentation across our payment processing namespace, requiring strict default-deny ingress and egress isolation.

T Task

Enforce default-deny policies while ensuring seamless communication between payment APIs, database endpoints, and DNS.

A Action

1. Verified CNI network policy support (Cilium / Calico eBPF).
2. Crafted a baseline policy allowing port 53 to k8s-app: kube-dns.
3. Defined explicit ingress rules restricting database port 5432 strictly to payment pods.
4. Validated network connectivity with ephemeral debug pods before locking production.

R Result

Achieved 100% compliance audit signoff with zero broken DNS resolutions or payment transaction interruptions.

💡 Senior Engineer Pro-Tip

Always verify that the underlying cluster CNI plugin actually enforces NetworkPolicies! Standard AWS VPC CNI before v1.14 did not enforce NetworkPolicies unless integrated with Calico or Cilium. Applying a NetworkPolicy to a cluster without an enforcing CNI gives a false sense of security while doing nothing.

SCENARIO 09 • KERNEL SCHEDULING & LATENCY

Your microservice P99 response time spikes to 2 seconds, but Prometheus shows CPU utilization is only 25% of its limit. What is happening?

⚡ 30-Second Elevator Pitch

“This is the notorious Linux Completely Fair Scheduler (CFS) quota throttling issue. Kubernetes enforces resources.limits.cpu using Linux CFS bandwidth control over a 100ms quota period (cpu.cfs_period_us = 100000). If a multi-threaded application (like Go or Java) bursts across multiple CPU cores, it can consume its entire 100ms allowance in the first 15ms. The Linux kernel forcefully suspends all container threads for the remaining 85ms of that period. Even though aggregate 1-minute CPU usage appears low at 25%, the threads are repeatedly frozen, creating massive latency spikes. We resolve this by inspecting container_cpu_cfs_throttled_periods_total, sizing CPU limits to match thread counts, or eliminating CPU limits entirely while setting realistic CPU requests.”

S Situation

A Go-based search microservice showed severe P99 latency spikes during search autocompletion, yet CPU utilization dashboards reported healthy 22% average utilization.

T Task

Eliminate thread freeze without over-provisioning node compute capacity.

A Action

1. Queried Prometheus: rate(container_cpu_cfs_throttled_periods_total[5m]) which showed 48% of periods throttled.
2. Realized the Go runtime spawned 16 OS threads matching host CPU count, consuming 200m quota instantly.
3. Set GOMAXPROCS to match container CPU limits using Uber's automaxprocs library.
4. Re-adjusted CPU limit to 2000m to accommodate parallel search fanouts.

R Result

CFS throttling dropped to under 0.2%, P99 latency plummeted from 2,100ms down to 18ms, and server throughput doubled.

💡 Senior Engineer Pro-Tip

In Staff/Principal SRE interviews, discuss the “No CPU Limits” philosophy popularized by Zalando and Google: Set high/realistic CPU requests to guarantee scheduling and node reservation, but omit CPU limits for latency-sensitive services so threads can burst into spare node capacity without hitting CFS quota walls.

SCENARIO 10 • AUTOSCALING ARCHITECTURE

Your Horizontal Pod Autoscaler (HPA) is flapping: scaling from 5 to 50 pods, then dropping back to 5 pods every 5 minutes. How do you stabilize it?

⚡ 30-Second Elevator Pitch

“HPA flapping occurs when the scaling action itself causes the target metric to collapse instantly before new pods can absorb steady-state traffic, combined with an aggressive downscale algorithm. When pods scale out, total CPU utilization drops below the 50% target, prompting HPA to immediately trigger scale-down. We fix this by configuring behavior.scaleDown.stabilizationWindowSeconds (typically 300 to 600 seconds) so HPA waits for a sustained lull before terminating pods, and by switching target metrics from raw CPU to request queue depth or HTTP requests per second via custom metrics API.”

S Situation

Sudden traffic bursts caused an order service HPA to oscillate wildly between 4 and 40 replicas every 6 minutes, driving up cloud costs and causing pod restart churn.

T Task

Smooth out autoscaling behavior to handle traffic bursts without rapid de-provisioning cycles.

A Action

1. Added an HPA behavior block with a 5-minute (300s) scaleDown stabilization window.
2. Configured rate-limited scale-down: maximum 10% reduction per minute.
3. Integrated Prometheus Adapter to scale based on HTTP latency percentiles rather than spikey CPU.

R Result

Flapping cycles dropped to zero, pod lifecycle churn was eliminated, and infrastructure spend dropped 28% through graceful stabilization.

💡 Senior Engineer Pro-Tip

Always mention the stabilizationWindowSeconds parameter introduced in Kubernetes HPA v2. It looks back over the past N seconds and chooses the highest calculated replica recommendation, preventing premature scale-downs during bursty traffic patterns.

SCENARIO 11 • TRAFFIC ROUTING & PROXIES

Your Ingress Controller logs show sporadic 504 Gateway Timeout errors during high-concurrency campaigns. How do you triage the proxy pipeline?

⚡ 30-Second Elevator Pitch

“An HTTP 504 Gateway Timeout means the ingress proxy (like NGINX or Envoy) established a TCP connection with an upstream pod, but the pod failed to return an HTTP response before the proxy's proxy-read-timeout expired. Triage requires isolating whether the bottleneck is at the Ingress proxy (worker connections exhausted or keep-alive pooling misconfigured), in the network (conntrack table drops), or at the application layer (thread pool exhaustion or database lock contention). I inspect Ingress controller logs for upstream_response_time versus request_time, check pod worker queues, and verify database connection pool limits.”

S Situation

During a flash sale, NGINX Ingress controller began logging 504 timeouts for 3% of incoming API requests while upstream pods were reporting 200 OK statuses on health endpoints.

T Task

Identify where in the request proxy pipeline transactions were stalling.

A Action

1. Analyzed NGINX access logs: $upstream_response_time was hitting exactly 60.000s.
2. Inspected application threads and discovered backend database connection pools were exhausted at 10 max connections.
3. Scaled backend database read replicas and raised pod connection pool sizes from 10 to 50.
4. Tuned NGINX proxy-connect-timeout and proxy-read-timeout to fail fast at 15 seconds.

R Result

504 Gateway Timeouts dropped to zero, database connection queueing disappeared, and peak throughput hit 8,500 req/s.

💡 Senior Engineer Pro-Tip

Differentiate between 502 and 504. A 502 Bad Gateway means the proxy could not connect to the pod or received an invalid/empty TCP reset. A 504 Gateway Timeout means the proxy successfully connected, but the backend application was too slow to respond.

SCENARIO 12 • SUPPLY CHAIN & IMAGE SECURITY

How do you enforce cryptographic verification of container images before they can execute in a production Kubernetes cluster?

⚡ 30-Second Elevator Pitch

“We implement a policy-as-code admission control gate using Kyverno or OPA Gatekeeper integrated with Sigstore Cosign. In the CI/CD pipeline, every built container image is cryptographically signed using keyless Cosign via OIDC tokens generated by GitHub Actions. Inside the Kubernetes cluster, a Validating Admission Policy intercepts every Pod creation request, queries the OCI registry for the image's Cosign signature bundle, verifies the cryptographic signature against our corporate identity certificate authority (Fulcio) and transparency log (Rekor), and rejects any untrusted or unsigned image before it ever touches a worker node.”

S Situation

Security audit required absolute prevention of unverified, tampered, or developer-laptop container images from running in production clusters.

T Task

Automate image signing and admission enforcement across 40 distinct development teams without managing private signing keys.

A Action

1. Configured GitHub Actions workflows to sign images using keyless cosign sign --yes with GitHub OIDC tokens.
2. Deployed Kyverno policy controller in the Kubernetes cluster.
3. Authored a ClusterPolicy verifying issuer https://token.actions.githubusercontent.com and exact corporate repository subjects.
4. Tested policy enforcement by attempting to run an unsigned Docker Hub image, which was cleanly rejected.

R Result

Eliminated static GPG private keys, guaranteed 100% cryptographic container provenance, and achieved SLSA Level 3 compliance.

💡 Senior Engineer Pro-Tip

Highlight that keyless Sigstore eliminates the massive operational risk of leaked private signing keys. Instead of storing a sensitive private key in CI secrets, keyless Cosign uses short-lived ephemeral certificates (valid for 10 minutes) tied to verified Git commit identities recorded on the immutable Rekor ledger.

QUICK REFERENCE

The 12 Kubernetes Failure Modes At A Glance.

A reference matrix of symptoms, root causes, and primary resolution runbooks.

Scenario Primary Symptom Underlying Root Cause Immediate Remediation
01. CrashLoopBackOff Exit code 137 / 1 / 127 Kernel OOM killer, heap exhaustion, or missing command Align runtime heap percentage to container limits
02. Rolling Updates 502 Bad Gateway during deploys Race between endpoint deregistration and SIGTERM Add lifecycle.preStop.exec: sleep 15 hook
03. etcd Quorum Loss API server rejects all write calls Lost Raft majority: (N/2) + 1 instances offline Re-initialize cluster via etcdctl snapshot restore
04. Webhook Freeze All pod creations blocked cluster-wide Webhook controller offline with failurePolicy: Fail Patch webhook configuration to failurePolicy: Ignore
05. CoreDNS Storms Exact 5000ms latency on external APIs ndots:5 local domain queries + UDP conntrack drop Deploy NodeLocal DNSCache & add trailing dot to FQDNs
06. PV Multi-Attach Pod stuck in ContainerCreating RWO volume still attached to crashed instance Terminate dead node instance to trigger cloud detach
07. Node Eviction Massive cascading Evicted pods Kubelet memory or disk available crossed eviction threshold Configure containerLogMaxSize & separate storage
08. Zero-Trust Security DNS resolution fails after default-deny Egress policy blocked port 53 to kube-dns Explicitly allow egress to kube-system on port 53 UDP/TCP
09. CPU CFS Throttling High P99 latency at low CPU usage Thread bursts exhaust 100ms CFS quota allowance Configure automaxprocs or omit CPU limits
10. HPA Flapping Pods scale up and down every 5 minutes Aggressive scale-down without stabilization window Set stabilizationWindowSeconds: 300
11. Ingress Overload 504 Gateway Timeout during flash sales Upstream app connection pool exhausted Scale backend database pools & tune proxy timeouts
12. Supply Chain Security Tampered or unverified images running Missing admission-level cryptographic signature check Enforce Sigstore Cosign verification via Kyverno policies
THE WEEKLY BRIEFING

Signal over noise.

One focused digest of real-world Kubernetes scenarios, SRE runbooks, and platform architecture lessons. No sponsor spam.

Related Production Guides & Developer Tools

Strengthen your interview preparation with our companion architectural runbooks and utilities:

TRIAGE RUNBOOK Kubernetes CrashLoopBackOff Runbook

Exit codes 137/143/1, liveness probe death spirals, and kernel OOM killer forensics.

READ ARCHITECTURE GUIDE →
CONTROL PLANE Kubernetes Cluster Architecture

Control plane internals, kube-scheduler algorithms, etcd Raft quorum, and worker nodes.

READ ARCHITECTURE GUIDE →
BEST PRACTICES Kubernetes Best Practices

Production hardening, ingress controllers, resource limits, and PDB policies.

READ ARCHITECTURE GUIDE →
UTILITY YAML Validator & K8s Tool

Validate Deployment and Service manifests before applying them to production.

TRY YAML VALIDATOR →