All jobs / DevOps / SRE / cloud / Kubernetes
DevOps / SRE / cloud interview question · 3–5 years
Pods cannot reach an external API that works from your laptop. What do you check in the cluster?
The strongest answer
DNS inside the cluster, NetworkPolicies / egress firewall, and NAT — I do not start by rewriting the client
Why it works
Exactly. Cluster DNS, policy, NAT. Laptop-works is a clue, not a client bug by default.
What a good answer covers
- Cluster DNS first.
- Then egress policy / NAT.
- Do not hostNetwork the fleet.
- Do not open the world.
Answers that fall short
- Close, but not the strongest: I add `hostNetwork: true` to everything
hostNetwork is a hammer that breaks isolation. - Weak: I disable DNS and hard-code IPs
Hard-coded IPs die on rotate. - Red flag: I open 0.0.0.0/0 ingress so “traffic can flow”
Opening ingress does not fix egress and is an incident.
Who gets asked this
More Kubernetes questions
- HPA keeps adding pods; memory still climbs per pod. What is going on?
- A cluster has no NetworkPolicies. What do you install without boiling the ocean?
- You run one precious cluster that cannot be rebuilt. What is the programme?
- Thirty teams share a few clusters. Requests for cluster-admin “just to deploy” arrive weekly. How do you hand…
- A service’s health URL always returns 200 from the process start. What did you miss?
- A candidate says “Kubernetes is Docker for production.” What is the cleaner sentence?
- Which Kubernetes object do you reach for: a stateless API, a database, a log agent on every node, and a…
- ConfigMap or Secret for a database password — and is a Secret encrypted?