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 questionsClick any card to load the whole article
expert•Cluster Architecture, Installation & Configuration•40 min•+25 XP
Debugging in a Highly Distributed Kubernetes Environment: Architecture & Implementation
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.
advanced•Workloads & Scheduling•8 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?
beginner•Cluster Architecture, Installation & Configuration•2 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?
intermediate•Workloads & Scheduling•8 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?
expert•Cluster Architecture, Installation & Configuration•45 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.
advanced•Workloads & Scheduling•5 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?
beginner•Cluster Architecture, Installation & Configuration•2 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?
intermediate•Workloads & Scheduling•4 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?
intermediate•Workloads & Scheduling•4 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?
beginner•Cluster Architecture, Installation & Configuration•3 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.
expert•Cluster Architecture, Installation & Configuration•52 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.
intermediate•Cluster Architecture, Installation & Configuration•5 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.
advanced•Services & Networking•6 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?
intermediate•Cluster Architecture, Installation & Configuration•5 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.
beginner•Cluster Architecture, Installation & Configuration•2 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.
expert•Cluster Architecture, Installation & Configuration•45 min•+25 XP
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.
advanced•Cluster Architecture, Installation & Configuration•7 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?
beginner•Cluster Architecture, Installation & Configuration•5 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.
expert•Cluster Architecture, Installation & Configuration•52 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.
intermediate•Troubleshooting•4 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?
advanced•Cluster Architecture, Installation & Configuration•6 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`?
beginner•Cluster Architecture, Installation & Configuration•3 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.
expert•Cluster Architecture, Installation & Configuration•20 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?
intermediate•Services & Networking•5 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?
advanced•Cluster Architecture, Installation & Configuration•25 min•+20 XP
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.
advanced•Cluster Architecture, Installation & Configuration•30 min•+20 XP
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.
intermediate•Cluster Architecture, Installation & Configuration•4 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.
beginner•Workloads & Scheduling•4 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?
expert•Cluster Architecture, Installation & Configuration•15 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?
beginner•Cluster Architecture, Installation & Configuration•3 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.
intermediate•Storage•5 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?
expert•Cluster Architecture, Installation & Configuration•15 min•+25 XP
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?
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?
advanced•Cluster Architecture, Installation & Configuration•27 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?
beginner•Cluster Architecture, Installation & Configuration•4 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?
intermediate•Troubleshooting•4 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?
expert•Cluster Architecture, Installation & Configuration•15 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?
advanced•Troubleshooting•22 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?
expert•Cluster Architecture, Installation & Configuration•12 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?
beginner•Workloads & Scheduling•3 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?
intermediate•Troubleshooting•4 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?
beginner•Cluster Architecture, Installation & Configuration•5 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.
advanced•Troubleshooting•22 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.
intermediate•Workloads & Scheduling•5 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?
advanced•Cluster Architecture, Installation & Configuration•35 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.
beginner•Cluster Architecture, Installation & Configuration•3 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?
intermediate•Storage•5 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?
intermediate•Cluster Architecture, Installation & Configuration•3 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.
beginner•Cluster Architecture, Installation & Configuration•2 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.
advanced•Storage•30 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.
beginner•Cluster Architecture, Installation & Configuration•3 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.
advanced•Services & Networking•35 min•+20 XP
Istio Traffic Management and Circuit Breaking: Architecture & Implementation
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.
Quick Answer:
Use Istio's DestinationRule for circuit breaking (connection pool limits + outlier detection) and VirtualService for timeouts, retries, and traffic mirroring. Circuit breaking trips when error thresholds are exceeded, fast-failing requests instead of letting them pile up — preventing cascading failures across service boundaries.
Detailed Answer
️ The Cascading Failure Problem
WITHOUT circuit breaking:
User Request → Payment Service → Fraud Detection (slow: 30s timeout)
│
├── Thread 1: waiting 30s...
├── Thread 2: waiting 30s...
├── Thread 3: waiting 30s...
├── Thread 4: waiting 30s...
└── Thread N: waiting 30s... ← Thread pool exhausted
Payment service fails
Cascading failure!
WITH circuit breaking (Istio):
User Request → Payment Service → Envoy Sidecar
│
Circuit CLOSED (normal):
→ Fraud Detection ✅
│
Circuit OPEN (after failures):
→ Fast fail 503 immediately ✅
→ No thread blocking
→ Payment service stays healthy
→ Failure contained
# destination-rule-fraud-detection.yaml
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: fraud-detection-circuit-breaker
namespace: production
spec:
host: fraud-detection.production.svc.cluster.local
trafficPolicy:
# Connection Pool Settings (prevent thread/connection exhaustion)
connectionPool:
tcp:
maxConnections: 100 # Max concurrent TCP connections to this service
connectTimeout: 3s # TCP connect timeout (fail fast if unreachable)
tcpKeepalive:
time: 7200s
interval: 75s
http:
h2UpgradePolicy: UPGRADE # Use HTTP/2 when possible (more efficient)
http1MaxPendingRequests: 50 # Max queued requests waiting for a connection
# Beyond this: fast-fail with 503
http2MaxRequests: 100 # Max active requests (HTTP/2)
maxRequestsPerConnection: 10 # Recycle connections after 10 requests
# Prevents long-lived connection issues
maxRetries: 3 # Max concurrent retry attempts across all hosts
# Outlier Detection (the actual circuit breaker)
outlierDetection:
# Eject a host if it returns 5xx errors
consecutiveGatewayErrors: 5 # Eject after 5 consecutive 5xx responses
consecutive5xxErrors: 5 # Same for 5xx from upstream
interval: 10s # Scan for outliers every 10 seconds
baseEjectionTime: 30s # Eject for 30 seconds initially
maxEjectionPercent: 50 # Never eject more than 50% of hosts
# Prevents complete service blackout
# Exponential backoff: ejection time doubles each time
# 1st ejection: 30s, 2nd: 60s, 3rd: 120s, etc.
minHealthPercent: 50 # If <50% hosts healthy, disable outlier detection
# (Circuit breaker won't help if all hosts are bad)
splitExternalLocalOriginErrors: true # Distinguish between local (Envoy)
# and external (upstream) errors
# Per-port overrides
portLevelSettings:
- port:
number: 8080
connectionPool:
http:
http1MaxPendingRequests: 100 # More lenient for primary port
# Subset definitions (for different versions)
subsets:
- name: v1
labels:
version: v1
- name: v2
labels:
version: v2
trafficPolicy:
connectionPool:
http:
http1MaxPendingRequests: 25 # More aggressive limiting for v2 (canary)
Step 2: VirtualService — Timeouts and Retries
# virtual-service-fraud-detection.yaml
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: fraud-detection-vs
namespace: production
spec:
hosts:
- fraud-detection.production.svc.cluster.local
http:
# Route rule with full resilience configuration
- name: fraud-detection-primary
match:
- uri:
prefix: /api/v1/check
route:
- destination:
host: fraud-detection.production.svc.cluster.local
subset: v1
port:
number: 8080
weight: 95
- destination:
host: fraud-detection.production.svc.cluster.local
subset: v2
port:
number: 8080
weight: 5 # 5% canary traffic to v2
# Timeout: give up after 3 seconds (not 30!)
timeout: 3s
# Retry policy
retries:
attempts: 3 # Retry up to 3 times
perTryTimeout: 1s # Each try gets 1 second
# Total: 3 attempts × 1s = 3s max
# (matches outer timeout)
retryOn: >
gateway-error,
connect-failure,
retriable-4xx,
refused-stream,
retriable-status-codes
retryRemoteLocalities: true # Try different pods on retry
# Fault injection for testing resilience (disable in production)
# fault:
# delay:
# percentage:
# value: 5.0 # Inject 5% delay
# fixedDelay: 5s
# abort:
# percentage:
# value: 2.0 # Inject 2% errors
# httpStatus: 503
# Fallback route for all other paths
- name: fraud-detection-default
route:
- destination:
host: fraud-detection.production.svc.cluster.local
port:
number: 8080
timeout: 2s
retries:
attempts: 2
perTryTimeout: 1s
retryOn: gateway-error,connect-failure
Step 3: Traffic Mirroring (Shadow Traffic for Testing)
# virtual-service-payment-with-mirror.yaml
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: payment-service-vs
namespace: production
spec:
hosts:
- payment-service.production.svc.cluster.local
http:
- name: payment-primary-with-mirror
route:
- destination:
host: payment-service.production.svc.cluster.local
subset: v1 # All traffic goes to stable v1
port:
number: 8080
weight: 100
# Mirror: Copy 20% of traffic to v2 (shadow testing)
# v2 responses are IGNORED — only v1 responses returned to clients
# Perfect for validating new versions against real traffic
mirror:
host: payment-service.production.svc.cluster.local
subset: v2
port:
number: 8080
mirrorPercentage:
value: 20.0 # Mirror 20% of requests
timeout: 5s
retries:
attempts: 3
perTryTimeout: 2s
retryOn: gateway-error,connect-failure,reset
Step 4: Locality-Based Load Balancing (Keep Traffic in Same AZ)
# destination-rule-locality.yaml
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: fraud-detection-locality
namespace: production
spec:
host: fraud-detection.production.svc.cluster.local
trafficPolicy:
# Prefer same AZ to reduce latency and cross-AZ data transfer costs
loadBalancer:
localityLbSetting:
enabled: true
distribute:
# 90% of traffic stays in same region/zone
- from: "us-east-1/us-east-1a/*"
to:
"us-east-1/us-east-1a/*": 90 # Same AZ: 90%
"us-east-1/us-east-1b/*": 10 # Adjacent AZ: 10%
- from: "us-east-1/us-east-1b/*"
to:
"us-east-1/us-east-1b/*": 90
"us-east-1/us-east-1a/*": 10
failover:
# If local AZ is unhealthy, failover to adjacent AZ
- from: us-east-1
to: us-west-2 # Cross-region failover as last resort
outlierDetection:
consecutiveGatewayErrors: 3
interval: 10s
baseEjectionTime: 30s
Step 5: Testing Circuit Breaking Behavior
# Test 1: Verify circuit breaker trips under load
# Install fortio load testing tool
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.20/samples/httpbin/sample-client/fortio-deploy.yaml
# Run concurrent requests (more than maxPendingRequests=50 to trigger circuit breaking)
kubectl exec -n production deploy/fortio -- \
/usr/bin/fortio load \
-c 100 \ # 100 concurrent connections (exceeds limit of 50)
-qps 0 \ # Unlimited QPS
-t 30s \ # Run for 30 seconds
-loglevel Warning \
http://fraud-detection:8080/api/v1/check
# Expected output:
# Code 200 : 4521 (75.4%)
# Code 503 : 1479 (24.6%) ← Circuit breaker fast-failing excess requests
#
# That 24.6% 503 rate is INTENTIONAL — better than 100% timeout!
# Test 2: Check Envoy metrics for circuit breaker state
kubectl exec -n production deploy/payment-service -c istio-proxy -- \
pilot-agent request GET stats | \
grep -E "upstream_rq_pending_overflow|upstream_rq_retry|ejections"
# Key metrics:
# cluster.fraud-detection.upstream_rq_pending_overflow: 1479 ← Requests fast-failed
# cluster.fraud-detection.outlier_detection.ejections_active: 2 ← Hosts ejected
# cluster.fraud-detection.upstream_rq_retry: 127 ← Retries attempted
Step 6: Observing Circuit Breaker in Kiali
# Kiali provides real-time visualization of circuit breaker state
kubectl port-forward -n istio-system svc/kiali 20001:20001
# Open http://localhost:20001
# Navigate to: Graph → Namespace: production
# You'll see:
# - Red edges: services with active circuit breakers
# - Lightning bolt icon: outlier detection active
# - Response time heat maps per service
# - Error rate percentages on each edge
# Also check Grafana Istio dashboard
kubectl port-forward -n istio-system svc/grafana 3000:3000
# Dashboard: Istio Service Dashboard
# Key panels:
# - Client Request Volume
# - Client Success Rate (non-5xx)
# - Client Request Duration (P50, P90, P99)
# - Outbound: Requests by Destination Service
️ Circuit Breaker Pattern Variants
Pattern
Mechanism
Istio Implementation
Best For
Connection pool limit
Reject when pool exhausted
connectionPool.http.http1MaxPendingRequests
Thread exhaustion prevention
Outlier detection
Eject unhealthy hosts
outlierDetection.consecutiveErrors
Removing bad pods from rotation
Timeout
Fail after time limit
VirtualService.timeout
Preventing slow dependency cascade
Retry with backoff
Retry on transient errors
VirtualService.retries
Handling intermittent failures
Bulkhead
Isolate resource pools
Separate DestinationRules
Preventing cross-service impact
️ Common Mistakes & Misconceptions
"Setting a timeout alone prevents cascading failures." — Timeout prevents one request from blocking forever, but if you have 1000 concurrent requests all waiting 3 seconds, you still exhaust the thread pool. You need connection pool limits AND timeouts.
"Retries always help." — Retrying on a downstream service that's already overloaded makes things worse. Only retry on connect-failure and gateway-error (infrastructure errors), not on 503 (overload errors). Use retryOn carefully.
"Circuit breaking is all-or-nothing." — Istio's outlier detection ejects individual pods (hosts), not the entire service. With maxEjectionPercent: 50, at least half the pods remain available even during widespread failures.
"Traffic mirroring is free." — Mirrored traffic still consumes CPU and network resources on the shadow service. Don't mirror 100% of high-volume traffic without understanding the resource implications.
Key Takeaway
Istio circuit breaking is not a single configuration — it requires three coordinated layers: connection pool limits prevent resource exhaustion, outlier detection removes unhealthy hosts from rotation, and VirtualService timeouts/retries handle transient failures. Together they implement the bulkhead and circuit breaker patterns from Release It! without a single line of application code change. The key insight is that a well-configured circuit breaker makes controlled failure (fast 503) far better than uncontrolled failure (cascading timeout).
Self-Assessment Checklist
Can you explain the difference between connection pool limits and outlier detection?
Can you describe what maxEjectionPercent prevents?
Can you explain why retrying on 503 is dangerous?
Can you describe how traffic mirroring works and what happens to mirrored responses?
Can you write a VirtualService with timeout and retry configuration?
intermediate•Cluster Architecture, Installation & Configuration•6 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?
advanced•Workloads & Scheduling•30 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.
beginner•Workloads & Scheduling•3 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?
intermediate•Cluster Architecture, Installation & Configuration•4 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?
beginner•Workloads & Scheduling•4 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?
advanced•Cluster Architecture, Installation & Configuration•8 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?
advanced•Cluster Architecture, Installation & Configuration•10 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?
beginner•Workloads & Scheduling•3 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?
beginner•Cluster Architecture, Installation & Configuration•3 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.
advanced•Cluster Architecture, Installation & Configuration•8 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?
beginner•Workloads & Scheduling•4 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?
beginner•Workloads & Scheduling•4 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?
beginner•Services & Networking•4 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?
beginner•Services & Networking•4 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?
beginner•Cluster Architecture, Installation & Configuration•3 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.
beginner•Storage•4 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?
beginner•Workloads & Scheduling•3 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?