<p>I have a specific requirement where I have a POD with 4 containers. Yes, 4 :-)
We are moving step by step towards a more containerized model. Please excuse me.
Now there is a requirement for container W need to know whether container X,Y,Z are up or down at real time. Is there a built-in feature available in K8s? Or should we use our own HTTP/TCP liveness checks?</p>

Prince
<p>Your own HTTP/TCP liveness checks are workable because containers in the same pod can contact each other via <code>localhost</code>. Example if container x is listening to port 80 with a healthcheck path <code>/healthz</code>, your container w can do <code>curl -sI http://localhost/healthz -o /dev/null -w &quot;%{http_code}&quot;</code> to check for 200 OK response.</p>
