InterviewStack.io LogoInterviewStack.io

Kubernetes Troubleshooting Questions

Covers diagnosing and resolving failures in container orchestration with an emphasis on Kubernetes pod and deployment issues. Topics include Kubernetes architecture and components, pod lifecycle and states, common failure modes such as CrashLoopBackOff, ImagePullBackOff, out of memory conditions, resource limit and quota problems, and node or scheduling issues. Practical debugging skills include using command line inspection and control tools, reading and correlating logs and events, using exec into containers, describing resources, checking node and cluster health, and interpreting health checks, liveness and readiness probes. Also includes distinguishing platform or cluster issues from application level faults, analyzing networking and service discovery problems, using monitoring and observability data, understanding rolling updates and deployment strategies, and applying remediation and rollback techniques for reliable recovery.

MediumTechnical
96 practiced
Describe how to use 'kubectl debug' with nsenter or a privileged debug pod to inspect another container's process and mount namespaces for forensics (open files, /proc, network sockets). Provide the command patterns and explain security implications and necessary RBAC or admission controller changes to allow this in a hardened cluster.
MediumTechnical
75 practiced
Pods on two nodes cannot reach each other by IP while host network between those nodes works. Outline a CNI troubleshooting plan including verifying CNI daemonset health, CNI config files, iptables/ipvs rules, kube-proxy mode, and how to capture and interpret packet traces to isolate whether the issue is overlay, encapsulation, or routing.
MediumTechnical
69 practiced
An application inside a pod fails with 'permission denied' when writing to a mounted volume. Explain how pod securityContext (runAsUser, runAsGroup), fsGroup, and container user permissions interact with filesystem ownership. Describe safe manifest changes or initContainer patterns to fix permissions without granting broad host privileges.
EasyTechnical
76 practiced
Explain the difference between resource requests and limits for CPU and memory in Kubernetes. Describe how the scheduler uses requests, how kubelet enforces limits, and examples of misconfiguration that can lead to CPU throttling or containers being OOMKilled. Include how QoS classes are derived from requests/limits.
MediumTechnical
97 practiced
Write a POSIX-compliant bash one-liner that lists all pods across all namespaces currently in CrashLoopBackOff and prints a header 'NAMESPACE/POD - last 20 log lines' followed by those last 20 lines using only kubectl and basic shell tools (no jq). Explain any assumptions you make for performance at scale.

Unlock Full Question Bank

Get access to hundreds of Kubernetes Troubleshooting interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.