title: Kubernetes: Service routing to pods with multiple containers
body: <p>I am currently facing an issue in my Kubernetes cluster. While debugging that I had a question in mind which I didn't know the answer to.</p>
  <p>I am using AWS EKS, version 1.15 but I don't think my question is related to any specific cloud or kubernetes version</p>
  <p>I have a deployment. It has multiple containers. There is a service that exposes this deployment.</p>
  <p>Suppose the deployment has 2 containers, C1 and C2. C1 takes 1 second to start but C2 takes 30 seconds to start(crazy!). So, when I start the pod at time t1, what happens is that once C1 starts immediately and the pod goes into running status but only 1/2 containers are ready. The pod C2 finally starts at time t2(t1+30seconds). At time t2, 2/2 containers are ready.</p>
  <p>Also assume that C1 takes the incoming request from the service, it does something and then forwards request to C2, C2 does something and then returns it to C1. C1 finally returns to service and the response is served to client.</p>
  <p>So, my question is, during the time between t2 and t1, when pod is in running state but only 1/2 container is ready, would the service forward requests to the pods?</p>
  <p>Put another way, when does the service forward request to pods? If they are in running state and not matter how many containers are ready? OR if they are in running state and all containers are ready?</p>
  <p>My thinking is that service won't forward as it won't make any sense if all the pods are not ready but I don't have any proof/document to justify it.</p>