Active Nerds
Kubernetes Learning Stream

Kubernetes Roadmap Articles & Question Stream

Browse questions, read quick answers, or expand full article breakdowns on demand. Filter by level, domain, or completion status using the sidebar dashboard.

Showing 69 of 69 questions
expertCluster Architecture, Installation & Configuration40 min+25 XP

Debugging in a Highly Distributed Kubernetes Environment: Architecture & Implementation

DevOps & AI Systems Engineer
Updated July 2026

Prerequisite knowledge: Prometheus, distributed tracing concepts, kubectl proficiency, network fundamentals


Question:

Your microservices platform has 200+ services across 3 clusters. Users report intermittent 5-second latency spikes affecting checkout. The issue is non-reproducible locally, affects only ~2% of requests, and disappears before you can investigate. Walk through your systematic debugging approach.

Quick Answer:

Use distributed tracing (Jaeger/Tempo) to identify which service in the call chain introduces latency, correlate with pod-level metrics in Prometheus, check for noisy-neighbor CPU throttling with kubectl top, inspect network policies for connection delays, and use continuous profiling (Parca/Pyroscope) to catch intermittent CPU spikes. The 2% rate and 5-second spike pattern strongly suggests DNS resolution timeouts or TCP connection pool exhaustion.


Detailed Answer

️ Systematic Debugging Framework

Step 1: OBSERVE    → Gather signals without assumptions
Step 2: HYPOTHESIZE → Form specific, testable theories
Step 3: ISOLATE    → Narrow the blast radius
Step 4: CONFIRM    → Prove the root cause
Step 5: REMEDIATE  → Fix and verify
Step 6: HARDEN     → Prevent recurrence

The 2% + 5-second Pattern: What It Tells You

Before touching any tool, the symptoms themselves are diagnostic clues:

SymptomWhat It Suggests
2% of requestsNot all pods affected — likely a specific instance or dependency
5-second spikesMatches default DNS timeout (5s) or TCP connect timeout
IntermittentRace condition, connection pool exhaustion, or GC pause
Checkout onlySpecific service dependency chain, not cluster-wide
Non-reproducible locallyScale-dependent, network-dependent, or timing-dependent

The 5-second number is a massive clue. The Linux kernel's default DNS resolution timeout is 5 seconds. This is the single most common cause of this exact symptom pattern in Kubernetes.


️ Step-by-Step Debugging

Step 1: Establish Observability Baseline

# Get a high-level view of what's unhealthy RIGHT NOW
kubectl get pods -A | grep -v Running | grep -v Completed | grep -v Succeeded

# Check resource pressure across nodes
kubectl top nodes
kubectl top pods -n checkout --sort-by=cpu

# Check for recent events (often the first clue)
kubectl get events -n checkout \
  --sort-by='.lastTimestamp' \
  --field-selector type=Warning | tail -30

# Check pod restarts (OOMKills show up here)
kubectl get pods -n checkout -o json | \
  jq '.items[] | {
    name: .metadata.name,
    restarts: .status.containerStatuses[0].restartCount,
    reason: .status.containerStatuses[0].lastState.terminated.reason
  }' | grep -A3 '"restarts": [^0]'

Step 2: Distributed Tracing — Find the Slow Span

# Assuming Jaeger is deployed (via Helm)
helm repo add jaegertracing https://jaegertracing.github.io/helm-charts
helm install jaeger jaegertracing/jaeger \
  --namespace observability \
  --set provisionDataStore.cassandra=false \
  --set allInOne.enabled=true \
  --set storage.type=memory   # Use Elasticsearch/Cassandra for production
# Instrument your service with OpenTelemetry (Python example)
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
from opentelemetry.instrumentation.requests import RequestsInstrumentor
from opentelemetry.instrumentation.psycopg2 import Psycopg2Instrumentor

# Configure tracer
provider = TracerProvider()
otlp_exporter = OTLPSpanExporter(
    endpoint="http://jaeger-collector.observability.svc.cluster.local:4317"
)
provider.add_span_processor(BatchSpanProcessor(otlp_exporter))
trace.set_tracer_provider(provider)

# Auto-instrument HTTP and DB calls
RequestsInstrumentor().instrument()
Psycopg2Instrumentor().instrument()

tracer = trace.get_tracer(__name__)

# Manual span for critical sections
def process_checkout(order_id: str):
    with tracer.start_as_current_span("process_checkout") as span:
        span.set_attribute("order.id", order_id)
        span.set_attribute("order.items", len(order.items))

        # This span will show if DNS resolution is slow
        with tracer.start_as_current_span("resolve_payment_service"):
            payment_url = resolve_service("payment-svc")

        with tracer.start_as_current_span("call_payment_gateway"):
            result = payment_client.charge(order)

        return result
# Query Jaeger for slow traces (using Jaeger API)
curl "http://jaeger.observability.svc.cluster.local:16686/api/traces?\
service=checkout-api&\
operation=process_checkout&\
minDuration=3000000&\
limit=20" | jq '.data[].spans[] | {
  operationName,
  duration: (.duration / 1000),
  tags: .tags
}' | sort -t: -k2 -rn | head -20

# Look for spans with duration > 4900ms (near the 5s timeout)
# The FIRST long span in the trace is your culprit

Step 3: DNS Investigation (Most Likely Culprit)

# Test DNS resolution speed from within a pod
kubectl run dns-test --image=tutum/dnsutils \
  --restart=Never --rm -it -- \
  bash -c "for i in {1..100}; do
    time nslookup payment-svc.production.svc.cluster.local;
  done 2>&1 | grep real"

# Check CoreDNS performance metrics
kubectl get pods -n kube-system -l k8s-app=kube-dns
kubectl top pods -n kube-system -l k8s-app=kube-dns

# Check CoreDNS logs for errors
kubectl logs -n kube-system -l k8s-app=kube-dns --tail=100 | \
  grep -E "SERVFAIL|timeout|i/o timeout"

# Check CoreDNS ConfigMap for misconfiguration
kubectl get configmap coredns -n kube-system -o yaml
# The most common DNS fix: tune ndots and add search domains
# Default /etc/resolv.conf in pods has ndots:5, causing 5 DNS lookups
# before falling back to the absolute name

# Fix 1: Tune dnsConfig in your deployment
apiVersion: apps/v1
kind: Deployment
metadata:
  name: checkout-api
spec:
  template:
    spec:
      dnsConfig:
        options:
          - name: ndots
            value: "2"        # Reduce from default 5 to 2
                              # checkout-api.production → tries as FQDN first
          - name: single-request-reopen
            value: ""         # Fix for parallel A/AAAA query race condition
          - name: timeout
            value: "2"        # DNS timeout per attempt (default 5s)
          - name: attempts
            value: "3"        # Retry 3 times before failing
      dnsPolicy: ClusterFirst
# Fix 2: CoreDNS caching tuning
# Edit CoreDNS ConfigMap
apiVersion: v1
kind: ConfigMap
metadata:
  name: coredns
  namespace: kube-system
data:
  Corefile: |
    .:53 {
        errors
        health {
           lameduck 5s
        }
        ready
        kubernetes cluster.local in-addr.arpa ip6.arpa {
           pods insecure
           fallthrough in-addr.arpa ip6.arpa
           ttl 30
        }
        prometheus :9153
        forward . /etc/resolv.conf {
           max_concurrent 1000
        }
        cache 30 {           # Cache DNS responses for 30 seconds
            success 9984     # Max successful cache entries
            denial 9984      # Max NXDOMAIN cache entries
            prefetch 10      # Prefetch popular entries before expiry
        }
        loop
        reload
        loadbalance
    }
# Fix 3: NodeLocal DNSCache (most impactful for high-traffic clusters)
# Runs a DNS cache DaemonSet on every node, eliminates conntrack issues
kubectl apply -f https://raw.githubusercontent.com/kubernetes/kubernetes/master/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml

# NodeLocal DNSCache intercepts DNS queries at the node level
# Reduces latency from ~5ms to ~0.1ms for cached entries
# Eliminates the conntrack race condition that causes 5s timeouts

Step 4: CPU Throttling Investigation

# Check for CPU throttling (a hidden cause of latency spikes)
# Throttling happens when a container hits its CPU LIMIT, not just request

# Query Prometheus for CPU throttling rate
curl -s "http://prometheus.monitoring.svc.cluster.local:9090/api/v1/query" \
  --data-urlencode 'query=
    rate(container_cpu_cfs_throttled_seconds_total{
      namespace="checkout",
      container="checkout-api"
    }[5m])
    /
    rate(container_cpu_cfs_periods_total{
      namespace="checkout",
      container="checkout-api"
    }[5m]) * 100' | \
  jq '.data.result[] | {pod: .metric.pod, throttle_pct: .value[1]}'

# If throttle_pct > 25%, you have a CPU limit problem
# Solution: Increase CPU limit or remove it (controversial but effective)
# Better solution: Profile the CPU usage and optimize the hot path

Step 5: Network Policy and Connection Pool Investigation

# Check for connection refused / reset errors
kubectl exec -n checkout deploy/checkout-api -- \
  netstat -an | grep -E "CLOSE_WAIT|TIME_WAIT" | wc -l
# High CLOSE_WAIT count = connection pool not releasing connections

# Check network policy isn't dropping packets
kubectl get networkpolicy -n checkout -o yaml

# Use tcpdump to capture actual traffic (requires privileged pod)
kubectl debug node/worker-node-01 -it \
  --image=nicolaka/netshoot -- \
  tcpdump -i eth0 -w /tmp/capture.pcap \
  'host payment-svc and (tcp-rst or tcp-fin)'

# Copy capture for analysis
kubectl cp debug-pod:/tmp/capture.pcap ./capture.pcap
wireshark capture.pcap   # Analyze TCP resets, retransmissions

Step 6: Continuous Profiling with Parca

# Install Parca (continuous profiling)
helm repo add parca https://parca-dev.github.io/parca
helm install parca parca/parca \
  --namespace observability \
  --set parca-agent.enabled=true   # eBPF-based, no code changes needed

# Parca Agent runs as DaemonSet and profiles ALL processes
# No instrumentation required — uses eBPF

# Access Parca UI
kubectl port-forward -n observability svc/parca 7070:7070

# In the UI:
# 1. Select your checkout-api process
# 2. Set time range to when latency spikes occurred
# 3. Look for flame graph hotspots that appear only during spikes
# 4. Compare "normal" vs "spike" profiles to find the delta

Step 7: Correlation Dashboard — Tying It All Together

# Grafana dashboard panels to correlate symptoms
# Panel 1: Request latency P99 (5m window)
# Query: histogram_quantile(0.99, rate(http_request_duration_seconds_bucket{service="checkout-api"}[5m]))

# Panel 2: DNS resolution time
# Query: histogram_quantile(0.99, rate(coredns_dns_request_duration_seconds_bucket[5m]))

# Panel 3: CPU throttling rate
# Query: rate(container_cpu_cfs_throttled_seconds_total{container="checkout-api"}[5m]) / rate(container_cpu_cfs_periods_total{container="checkout-api"}[5m])

# Panel 4: Connection pool saturation
# Query: db_connection_pool_size{service="checkout-api"} - db_connection_pool_available{service="checkout-api"}

# Panel 5: Error rate by pod (to identify specific bad pods)
# Query: rate(http_requests_total{service="checkout-api",status=~"5.."}[5m]) by (pod)

# Correlate all 5 panels on same time axis
# The panel that spikes FIRST (leading indicator) is your root cause

Step 8: kubectl-debug and Ephemeral Containers

# Attach a debug container to a running pod WITHOUT restarting it
# (Kubernetes 1.23+ feature)
kubectl debug -it checkout-api-7d9f8b-xk2pq \
  --image=nicolaka/netshoot \
  --target=checkout-api \
  --namespace=checkout

# Inside the debug container, you share the pod's network namespace
# Run network diagnostics
curl -v http://payment-svc.production.svc.cluster.local/health
dig payment-svc.production.svc.cluster.local
ss -tulpn     # Show listening sockets
strace -p 1   # Trace system calls of PID 1 (the main process)

# Profile memory allocations in real time
# (If the target container has perf installed)
perf top -p $(pgrep checkout-api)

️ Multiple Perspectives on the Root Cause

HypothesisEvidence PatternDiagnostic ToolFix
DNS timeoutExactly 5s spike, 2% ratetime nslookup in podNodeLocal DNSCache, ndots tuning
CPU throttlingSpikes correlate with traffic peaksPrometheus throttle metricIncrease CPU limit, optimize code
Connection pool exhaustionHigh CLOSE_WAIT, DB errorsnetstat, pool metricsIncrease pool size, add backoff
GC pause (JVM/Go)Spikes every N minutesContinuous profilingTune GC, reduce heap pressure
Noisy neighborSpikes on specific nodeskubectl top nodesPod anti-affinity, node taints
Network policy dropSpecific pod pairs affectedtcpdump, policy reviewFix NetworkPolicy rules

️ Common Mistakes & Misconceptions

  • "I'll add more logging to debug this." — Logging adds latency and can mask the very problem you're debugging. Use tracing and profiling instead.
  • "The issue doesn't exist in staging, so it's a code bug." — Distributed system issues are often emergent at scale. DNS conntrack races, for example, only manifest under high concurrency.
  • "I'll restart the pod to fix it." — Restarting destroys the evidence. Always capture diagnostics (thread dumps, heap dumps, network captures) before restarting.
  • "CPU usage looks normal, so CPU isn't the issue." — CPU usage and CPU throttling are different metrics. A container can be throttled even at 50% usage if it hits its limit in a short burst window.

Key Takeaway

Debugging distributed Kubernetes issues requires correlating signals across multiple observability layers — traces show you where, metrics show you when and how often, and profiling shows you why. The 5-second latency spike pattern is almost always DNS-related in Kubernetes. NodeLocal DNSCache is the single most impactful fix for DNS-related latency in high-traffic clusters, eliminating both the 5-second timeout and the conntrack race condition simultaneously.


Self-Assessment Checklist

  • Can you explain why the default ndots:5 setting causes extra DNS lookups?
  • Can you describe the difference between CPU usage and CPU throttling?
  • Can you explain what NodeLocal DNSCache does and why it's better than CoreDNS alone?
  • Can you use ephemeral containers to debug a running pod without restarting it?
  • Can you describe how to use distributed tracing to find the slow span in a call chain?

advancedWorkloads & Scheduling8 min+20 XP

GitLab CI/CD Integration: Automated Container Builds and Manifest Deployments

Question

How do you configure a GitLab CI/CD pipeline to build container images, update Kubernetes manifests, and execute secure deployments to a Kubernetes cluster using ServiceAccounts?

beginnerCluster Architecture, Installation & Configuration2 min+10 XP

Kubernetes Architecture: Why Container Orchestration is Essential

Question

Why is container orchestration essential when running containerized applications at scale, and what core problems does Kubernetes solve compared to manual container management?

intermediateWorkloads & Scheduling8 min+15 XP

Production Deployment Design: Stateless Scalable Web Applications with HPA

Question

How do you architect a production-ready stateless web application deployment in Kubernetes combining Deployments, HPA, PodDisruptionBudgets, and anti-affinity rules for high availability?

expertCluster Architecture, Installation & Configuration45 min+25 XP

Advanced Networking: Network Policies and Service Mesh

Question

Your platform team must implement zero-trust networking for a financial services application. Requirements: all inter-service communication must be mutually authenticated and encrypted, no pod should communicate with any other pod unless explicitly allowed, east-west traffic must be auditable, and the solution must not require application code changes. Design and implement this.

advancedWorkloads & Scheduling5 min+20 XP

GitOps Workflow: Declarative Infrastructure Management with ArgoCD and Flux

Question

How does the GitOps pull-based architecture (using ArgoCD or Flux) differ from traditional push-based CI/CD pipelines, and how does it detect and reconcile cluster state drift automatically?

beginnerCluster Architecture, Installation & Configuration2 min+10 XP

Manual Operations vs. Kubernetes: Problems Automated Orchestration Solves

Question

What specific operational problems arise when managing containers manually across multiple hosts, and how does Kubernetes automate self-healing, scaling, and service discovery?

intermediateWorkloads & Scheduling4 min+15 XP

Sidecar, Ambassador, and Adapter Patterns: Advanced Multi-Container Pod Designs

Question

How do the Sidecar, Ambassador, and Adapter multi-container Pod patterns enhance application functionality, and when should you use each pattern in production?

intermediateWorkloads & Scheduling4 min+15 XP

Sidecar, Ambassador, and Adapter Patterns: Advanced Multi-Container Pod Designs

Question

What are the key architectural differences between Sidecar, Ambassador, and Adapter pod patterns, and how do they extend containerized workloads without modifying primary application code?

beginnerCluster Architecture, Installation & Configuration3 min+10 XP

Containers vs. Virtual Machines: Isolation Mechanisms at the Linux Kernel Level

Question

Explain the architecture, failure modes, and operational best practices for Containers vs. Virtual Machines: Isolation Mechanisms at the Linux Kernel Level in production Kubernetes environments.

expertCluster Architecture, Installation & Configuration52 min+25 XP

Custom Controllers and Operators Development: Architecture & Implementation

Question

Your platform team needs to automate database provisioning. Every time a developer creates a `Database` custom resource, the system should automatically provision a PostgreSQL StatefulSet, a Service, a Secret with credentials, and register the database in your internal service catalog — then clean everything up when the resource is deleted. Build this operator.

intermediateCluster Architecture, Installation & Configuration5 min+15 XP

Debugging Pending Pods: Systematic Troubleshooting for Scheduling Blocks

Question

Explain the architecture, failure modes, and operational best practices for Debugging Pending Pods: Systematic Troubleshooting for Scheduling Blocks in production Kubernetes environments.

advancedServices & Networking6 min+20 XP

NetworkPolicies: Micro-Segmentation and Pod Traffic Filtering with Calico or Cilium

Question

How do Kubernetes NetworkPolicies enforce micro-segmentation and pod traffic isolation, and how do CNI plugins like Calico or Cilium implement these rules at the kernel network layer?

intermediateCluster Architecture, Installation & Configuration5 min+15 XP

CrashLoopBackOff Troubleshooting: Root Cause Analysis for Application Container Crashes

Question

Explain the architecture, failure modes, and operational best practices for CrashLoopBackOff Troubleshooting: Root Cause Analysis for Application Container Crashes in production Kubernetes environments.

beginnerCluster Architecture, Installation & Configuration2 min+10 XP

Docker vs. Kubernetes: Runtime Engines vs. Cluster Orchestrators

Question

Explain the architecture, failure modes, and operational best practices for Docker vs. Kubernetes: Runtime Engines vs. Cluster Orchestrators in production Kubernetes environments.

expertCluster Architecture, Installation & Configuration45 min+25 XP

etcd Performance Optimization: Architecture & Implementation

Question

Your 500-node production cluster is experiencing API server latency spikes. Investigation shows etcd is the bottleneck: `etcd_disk_wal_fsync_duration_seconds` P99 is 150ms (should be <10ms), leader elections are happening frequently, and the etcd database size is approaching 8GB. Walk through your complete etcd performance diagnosis and remediation plan.

advancedCluster Architecture, Installation & Configuration7 min+20 XP

Kubernetes Disaster Recovery: Cluster Backup, etcd Snapshots, and Velero

Question

How do you design a comprehensive disaster recovery strategy for Kubernetes using etcd snapshots for control plane state and Velero for persistent volume backups?

beginnerCluster Architecture, Installation & Configuration5 min+10 XP

Control Plane vs. Worker Nodes: Key Architecture Components of a Kubernetes Cluster

Question

Explain the architecture, failure modes, and operational best practices for Control Plane vs. Worker Nodes: Key Architecture Components of a Kubernetes Cluster in production Kubernetes environments.

expertCluster Architecture, Installation & Configuration52 min+25 XP

Multi-Cluster Strategy for a Geographically Distributed Company: Architecture & Implementation

Question

Your company operates in US-East, EU-West, and APAC. Compliance requires EU data to stay in EU (GDPR), US financial data to stay in US (SOX), and APAC to serve as a DR site for both regions. SLA is 99.95% (< 4.4 hours/year downtime). Design a complete multi-cluster strategy.

intermediateTroubleshooting4 min+15 XP

OOMKilled Prevention: Container Memory Limits, Cgroups, and Linux OOM Killer

Question

What kernel mechanisms trigger an OOMKilled exit status for a container, and how do you configure container memory requests and cgroups limits to prevent out-of-memory container crashes?

advancedCluster Architecture, Installation & Configuration6 min+20 XP

Zero-Downtime Cluster Upgrades: Master Control Plane and Worker Maintenance

Question

What step-by-step workflow guarantees zero downtime when upgrading worker nodes and control plane components using `kubeadm`, `cordon`, and `drain`?

beginnerCluster Architecture, Installation & Configuration3 min+10 XP

etcd Architecture: Distributed Key-Value Store for Kubernetes Cluster State

Question

Explain the architecture, failure modes, and operational best practices for etcd Architecture: Distributed Key-Value Store for Kubernetes Cluster State in production Kubernetes environments.

expertCluster Architecture, Installation & Configuration20 min+25 XP

How Do You Build a Custom Admission Webhook from Scratch?: Architecture & Implementation

Question

How do you construct and deploy a custom Kubernetes Admission Webhook from scratch, and what TLS certificate requirements must be satisfied for the API server to communicate with it securely?

intermediateServices & Networking5 min+15 XP

Kubernetes Ingress Controllers: Layer 7 HTTP Routing and SSL/TLS Termination

Question

How does an Ingress Controller manage Layer 7 HTTP/HTTPS traffic routing and SSL/TLS termination, and how does it differ from a NodePort or LoadBalancer Service?

advancedCluster Architecture, Installation & Configuration25 min+20 XP

Kubernetes Upgrade Strategy: Architecture & Implementation

Question

Your company runs a production Kubernetes cluster on v1.26. The security team has mandated an upgrade to v1.29 due to a CVE. You have 40 nodes, stateful workloads, and a 99.9% uptime SLA. Walk through your complete upgrade strategy.

advancedCluster Architecture, Installation & Configuration30 min+20 XP

CI/CD Pipeline Security Scanning & Compliance: Architecture & Implementation

Question

Your organization must comply with SOC 2 and PCI-DSS. The security team requires that no container image with a Critical or High CVE reaches production, all Kubernetes manifests must comply with the CIS Kubernetes Benchmark, and secrets must never appear in source code or image layers. Design and implement a complete DevSecOps pipeline.

intermediateCluster Architecture, Installation & Configuration4 min+15 XP

CoreDNS Architecture: In-Cluster DNS Resolution and Service Record Lookup

Question

Explain the architecture, failure modes, and operational best practices for CoreDNS Architecture: In-Cluster DNS Resolution and Service Record Lookup in production Kubernetes environments.

beginnerWorkloads & Scheduling4 min+10 XP

Understanding Pods: Why Kubernetes Groups Containers as the Smallest Deployable Unit

Question

Why does Kubernetes use a Pod—rather than a single container—as its smallest deployable unit, and how do containers inside the same Pod share network and storage namespaces?

expertCluster Architecture, Installation & Configuration15 min+25 XP

What Is OPA/Gatekeeper and How Does It Extend Admission Control?: Architecture & Implementation

Question

What is OPA/Gatekeeper, how does it integrate with Kubernetes Validating Admission Webhooks, and how do ConstraintTemplates define declarative cluster governance policies?

beginnerCluster Architecture, Installation & Configuration3 min+10 XP

Control Plane vs. Worker Nodes: Responsibilities and Component Breakdown

Question

Explain the architecture, failure modes, and operational best practices for Control Plane vs. Worker Nodes: Responsibilities and Component Breakdown in production Kubernetes environments.

intermediateStorage5 min+15 XP

Storage Persistence: PersistentVolumes, PersistentVolumeClaims, and StorageClasses

Question

How do PersistentVolumes, PersistentVolumeClaims, and StorageClasses decouple storage consumption from underlying cloud storage infrastructure in Kubernetes?

expertCluster Architecture, Installation & Configuration15 min+25 XP

Scenario: Enforce Image Registry Policy Cluster-Wide

Question

How do you implement an admission policy using OPA/Gatekeeper or Kyverno to enforce that all containers deployed to a cluster originate exclusively from approved internal image registries?

advancedWorkloads & Scheduling22 min+20 XP

Zero-Downtime Deployments: Architecture & Implementation

Question

You manage a critical payment processing API. It handles 10,000 requests/minute with no tolerance for dropped connections. How do you implement zero-downtime deployments?

advancedCluster Architecture, Installation & Configuration27 min+20 XP

Blue/Green and Canary Deployments with Argo Rollouts: Architecture & Implementation

Question

Your e-commerce platform releases features weekly. A bad release last quarter caused 30 minutes of downtime and lost $200K in revenue. Leadership now requires that all releases be validated against 5% of live traffic before full rollout, with automatic rollback if error rates exceed 1%. How do you implement this?

beginnerCluster Architecture, Installation & Configuration4 min+10 XP

Inside kubectl apply: Execution Flow from API Server to Container Runtime

Question

What happens under the hood during a `kubectl apply` request from client-side YAML parsing, OpenAPI validation, authentication/authorization, admission webhooks, to etcd persistence?

intermediateTroubleshooting4 min+15 XP

Resource Requests vs. Limits: CPU/Memory Scheduling and Throttling Policies

Question

What is the operational difference between CPU/memory resource requests and limits, and how does Kubernetes use requests for scheduling while using limits to enforce throttling and OOM eviction?

expertCluster Architecture, Installation & Configuration15 min+25 XP

What Are the Key Levers for etcd Performance Tuning?: Architecture & Implementation

Question

What are the primary performance tuning levers for etcd (such as heartbeat intervals, election timeouts, disk I/O priorities, and DB quota limits) to ensure cluster stability under heavy write loads?

advancedTroubleshooting22 min+20 XP

Cluster Resource Exhaustion: Monitoring and Scaling Strategy

Question

Your cluster is running out of resources. Pods are stuck in `Pending` state, nodes are at 90% CPU, and the on-call engineer is getting paged at 2 AM. What monitoring and scaling strategies do you implement to prevent this and respond automatically?

expertCluster Architecture, Installation & Configuration12 min+25 XP

How Do You Benchmark and Monitor etcd Health in Production?: Architecture & Implementation

Question

How Do You Benchmark and Monitor etcd Health in Production?: Architecture & Implementation?

beginnerWorkloads & Scheduling3 min+10 XP

Kubernetes Namespaces: Logical Cluster Isolation and Resource Scoping

Question

How do Kubernetes Namespaces provide logical cluster isolation and resource scoping, and what are the limitations of namespaces regarding security and network boundary isolation?

intermediateTroubleshooting4 min+15 XP

Kubernetes QoS Classes: Guaranteed, Burstable, and BestEffort Pod Eviction Priorities

Question

How does Kubernetes assign Guaranteed, Burstable, and BestEffort Quality of Service (QoS) classes to Pods, and how does the kernel OOM killer use `oom_score_adj` to evict Pods during resource scarcity?

beginnerCluster Architecture, Installation & Configuration5 min+10 XP

Essential kubectl Commands: Operations and Debugging Cheat Sheet

Question

Explain the architecture, failure modes, and operational best practices for Essential kubectl Commands: Operations and Debugging Cheat Sheet in production Kubernetes environments.

advancedTroubleshooting22 min+20 XP

Exposed Secrets in ConfigMap: Incident Response

Question

A developer accidentally committed a database password and an AWS access key directly into a ConfigMap, which was then applied to the production cluster and pushed to a public GitHub repository. You're the on-call engineer. Walk through your complete incident response plan.

intermediateWorkloads & Scheduling5 min+15 XP

Liveness, Readiness, and Startup Probes: Health Check Configurations

Question

How do Liveness, Readiness, and Startup probes differ in purpose and behavior, and how do incorrect probe configurations cause cascading deployment failures or unnecessary restarts?

advancedCluster Architecture, Installation & Configuration35 min+20 XP

Advanced RBAC Design for Multi-Team Organization: Architecture & Implementation

Question

Your company has three engineering teams: Frontend (deploys React apps), Backend (deploys APIs and workers), and Database (manages PostgreSQL and Redis). Each team has developers, leads, and CI/CD service accounts. Design a complete RBAC system where teams can only access their own namespaces, leads can approve deployments, CI/CD can deploy but not delete, and platform engineers have cluster-wide admin access with audit trails.

beginnerCluster Architecture, Installation & Configuration3 min+10 XP

Imperative vs. Declarative Management: Infrastructure as Code with Kubernetes Manifests

Question

What are the fundamental differences between imperative `kubectl` commands and declarative `kubectl apply` manifest management, and why is declarative management required for Production Infrastructure as Code?

intermediateStorage5 min+15 XP

StatefulSets vs. Deployments: Managing Stateful Applications with Stable Identities

Question

Why are standard Deployments unsuitable for stateful applications like database clusters, and how do StatefulSets provide stable network identities, ordinal indices, and persistent storage bindings?

intermediateCluster Architecture, Installation & Configuration3 min+15 XP

DaemonSets: Running Node-Level Daemon Agents for Logging and Monitoring

Question

Explain the architecture, failure modes, and operational best practices for DaemonSets: Running Node-Level Daemon Agents for Logging and Monitoring in production Kubernetes environments.

beginnerCluster Architecture, Installation & Configuration2 min+10 XP

Dry-Run Validation: Client-Side vs. Server-Side Mutation Testing

Question

Explain the architecture, failure modes, and operational best practices for Dry-Run Validation: Client-Side vs. Server-Side Mutation Testing in production Kubernetes environments.

advancedStorage30 min+20 XP

StatefulSet Design for Database Pods: Architecture & Implementation

Question

You need to ensure a PostgreSQL database Pod maintains state across cluster updates, node failures, and rolling restarts. Design a production-grade StatefulSet with proper storage, backup, high availability, and operational runbook.

beginnerCluster Architecture, Installation & Configuration3 min+10 XP

Anatomy of a Kubernetes Manifest: The Four Essential Structure Fields

Question

Explain the architecture, failure modes, and operational best practices for Anatomy of a Kubernetes Manifest: The Four Essential Structure Fields in production Kubernetes environments.

advancedServices & Networking35 min+20 XP

Istio Traffic Management and Circuit Breaking: Architecture & Implementation

Question

Your payment service is experiencing cascading failures. When the downstream fraud-detection service becomes slow, payment service threads pile up waiting for responses, eventually exhausting the connection pool and causing payment service itself to fail. Implement circuit breaking, retry logic, timeout policies, and traffic mirroring using Istio to make this system resilient without changing application code.

intermediateCluster Architecture, Installation & Configuration6 min+15 XP

Kubernetes RBAC: Implementing Roles, ClusterRoles, and Bindings for Granular Security

Question

How do Role, ClusterRole, RoleBinding, and ClusterRoleBinding resources interact to enforce least-privilege authorization across namespaces and cluster-wide resources?

advancedWorkloads & Scheduling30 min+20 XP

Advanced Pod Scheduling: Affinity, Taints, and Topology

Question

You have a cluster with three node types: GPU nodes (expensive), high-memory nodes, and standard nodes. ML training jobs must run only on GPU nodes, memory-intensive analytics must prefer high-memory nodes, and web frontends must be spread across standard nodes in different AZs. Also, the GPU nodes should not accept any non-ML workloads. Implement this scheduling strategy.

beginnerWorkloads & Scheduling3 min+10 XP

Labels vs. Annotations: Resource Selectors vs. Operational Metadata

Question

What is the structural and functional difference between Labels and Annotations in Kubernetes, and why should operational metadata never be used in label selectors?

intermediateCluster Architecture, Installation & Configuration4 min+15 XP

ServiceAccounts vs. User Accounts: Identity, Token Auth, and Pod Authorization

Question

What are the key architectural differences between ServiceAccounts and User Accounts in Kubernetes, and how does token projection work for Pod service account authentication?

beginnerWorkloads & Scheduling4 min+10 XP

Pod Lifecycle States: Phase Transitions from Pending to Running and Termination

Question

What are the exact phase transitions a Pod undergoes from Pending to Running or Failed, and what conditions cause a Pod to remain stuck in Pending or CrashLoopBackOff?

advancedCluster Architecture, Installation & Configuration8 min+20 XP

What is the Kubernetes API Extension Model?: Architecture & Implementation

Question

How does the Kubernetes API extension model work using Custom Resource Definitions (CRDs) and custom controllers, and how does API aggregation differ from CRD registration?

advancedCluster Architecture, Installation & Configuration10 min+20 XP

How Do Validating vs. Mutating Admission Webhooks Differ?

Question

How do Mutating and Validating Admission Webhooks differ in execution order and purpose during an API server request, and how do you prevent webhooks from blocking cluster operations if they fail?

beginnerWorkloads & Scheduling3 min+10 XP

Init Containers: Pre-initialization, Dependency Waiting, and Setup Execution

Question

How do Init Containers execute sequentially before main application containers start, and how can they be used for dependency waiting, schema migrations, and secure credential setup?

beginnerCluster Architecture, Installation & Configuration3 min+10 XP

Deployments vs. ReplicaSets: Declarative Scaling and Pod Template Management

Question

Explain the architecture, failure modes, and operational best practices for Deployments vs. ReplicaSets: Declarative Scaling and Pod Template Management in production Kubernetes environments.

advancedCluster Architecture, Installation & Configuration8 min+20 XP

How Does etcd Store Kubernetes State Internally?: Architecture & Implementation

Question

How does etcd store Kubernetes cluster state internally using key-value MVCC (Multi-Version Concurrency Control), and how does the API server handle bbolt database compaction and revision watch streams?

beginnerWorkloads & Scheduling4 min+10 XP

Kubernetes Deployment Spec: Pod Templates, Replicas, and Rollout Controls

Question

What key fields inside a Deployment specification control replica count, update strategy, and pod revision history, and how does a Deployment controller manage underlying ReplicaSets?

beginnerWorkloads & Scheduling4 min+10 XP

Rolling Update Strategy: Zero-Downtime Deployment Control with maxSurge and maxUnavailable

Question

How do `maxSurge` and `maxUnavailable` parameters control rolling update rollouts, and how do you configure them to guarantee zero-downtime deployments under heavy traffic?

beginnerServices & Networking4 min+10 XP

Kubernetes Services: Stable Networking and Service Discovery for Transient Pods

Question

How do Kubernetes Services provide stable IP addresses and DNS endpoints for transient Pods, and how does kube-proxy update iptables/IPVS rules when Pod endpoints change?

beginnerServices & Networking4 min+10 XP

ClusterIP vs. NodePort vs. LoadBalancer vs. ExternalName: Service Type Selection

Question

What are the functional differences and use cases among ClusterIP, NodePort, LoadBalancer, and ExternalName service types, and how does packet routing work for each?

beginnerCluster Architecture, Installation & Configuration3 min+10 XP

ConfigMaps: Decoupling Application Configuration from Container Images

Question

Explain the architecture, failure modes, and operational best practices for ConfigMaps: Decoupling Application Configuration from Container Images in production Kubernetes environments.

beginnerStorage4 min+10 XP

Kubernetes Secrets vs. ConfigMaps: Sensitive Data Storage and Base64 Limitations

Question

What are the technical differences between Secrets and ConfigMaps, why is Base64 encoding insufficient for secret security, and how should sensitive data be encrypted at rest in etcd?

beginnerWorkloads & Scheduling3 min+10 XP

Kubernetes Self-Healing Mechanics: Automatic Restarts and Pod Rescheduling

Question

How does the Kubelet enforce self-healing mechanics through container restart policies and health probes, and how does the control plane reschedule Pods when a node dies?