Apple Interview QnA - Part II
A pod in Kubernetes cannot reach an external API, but curl works fine from the node. What is your debugging flow? This situation clearly shows the issue is in the pod layer, because the endpoint is accessible from node where the pod is running. Node and Pods don’t share the same network in real time. So, I would start with the below checks: Check if the endpoint is resolving from the pod. This is to eliminate if it is a network issue or DNS resolve issue. If DNS fails, check “CORE DNS” pods which is usually created on all the worker nodes. CORE DNS pods are usually run a replicaset. It is worth to check the pod health and resource consumption. Let’s say the DNS work fine and we are getting timeout while connecting the external API. This could be due to the network policy (EGREES) configured...