<p>I have a deployment with two containers, let's say A and B.</p>
<p><code>container A</code> serves http requests, the important container in the deployment. has liveness and readiness probes properly set.</p>
<p><code>Container B</code> serves as a proxy to a certain third party service through an ssh tunnel, has a very specific usecase, but for whatever reason, the third party service can be unreachable which puts this container on a crash loop.</p>
<p>The question is: How can I make this pod serve requests even if <code>Container B</code> is on a crashloop?</p>
<p>TLDR; How to make a deployment serve requests if a specific container is on a crashloop?</p>

Amine Hakkou
<p>You kind of can't. You could remove the readiness probe from B but any kind of crash is assumed to be bad. Probably your best bet is to change B so that it doesn't actually crash out to where the kubelet can see it. Like put a little <code>while true; do theoriginalcommand; sleep 1; done</code> bash loop on it or something so the kubelet isn't aware of it crashing. Or just make it not crash ...</p>
