<p>Is there a way to request the status of a readinessProbe by using a service name linked to a deployment ? In an initContainer for example ?</p>

<p>Imagine we have a deployment X, using a readinessProbe, a service linked to it so we can request for example <code>http://service-X:8080</code>.
Now we create a deployment Y, in the initContainer we want to know if deployment X is ready. Is there a way to ask something like<code>deployment-X.ready</code> or <code>service-X.ready</code> ?</p>

<p>I know that the correct way to handle dependencies is to let kubernetes do it for us, but i have a container which doesn't crash and I have no hand on it...</p>

Borhink
<p>You can add a ngnix proxy sidecar on deployment Y.
Set the <code>deploymentY.initContainer.readynessProbe</code> to a port on nginx and that port is proxied to <code>deploymentY.readynessProbe</code></p>
