<p>I have a <strong>console</strong> app in .net core.
How to implement Kubernetes readiness/liveness probe?</p>

<p>My app process rabbitmq messages in loop, and don`t listen any http ports. </p>

<p>Readiness probe makes zero sense for this scenario as you will not direct any traffic via means of Service. As your app reads rabbitmq on it's own, it will do so regardless of kube probes. There is logic though in using liveness probe where you might want to restart container if the process inside has failed in some way.</p>

<p>You can either create a status api endpoint which will listen on some port for http requests and respond with 200 OK if your application is healthy (you need some logic inside to define what healthy means) or use command based probe to launch a command that will do some checking and report if container is ok or not.</p>
