<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>In this case, it may be better to create a sidecar container in the same pod. This container would host an  ASP.NET Core site, specifically to leverage the new health checks api recently introduced in .NET Core 2.2. There are extensions for monitoring rabbitmq connectivity. You would then expose the ASP.NET Core website for health checks.</p>

<p><a href="https://learn.microsoft.com/en-us/dotnet/standard/microservices-architecture/implement-resilient-applications/monitor-app-health" rel="nofollow noreferrer"> ASP.NET Core Health Montioring</a></p>

<p><a href="https://www.nuget.org/packages/AspNetCore.HealthChecks.Rabbitmq/" rel="nofollow noreferrer">AspNetCore.HealthChecks.Rabbitmq</a></p>
