<p>I have asp.net core web api app where I have implemented health checks when we deployed the app to Azure Kubernetes Services and the startup probe gets failed.</p>
<blockquote>
<p>startupProbe:
httpGet:
path: /health/startup
port: 32243
failureThreshold: 25
periodSeconds: 10</p>
</blockquote>
<p>I can see that internally it's hit the endpoint with <strong>IP address</strong> overs http.</p>
<p>Startup probe failed: Get &quot;http://10.22.148.185:32243/health/startup&quot;: dial tcp 10.22.148.185:32243: connect: connection refused</p>
<p>When I <strong>removed</strong> startup probe from YAML definition, then the startup endpoint is working as expected, here I am checking with <strong>FQDN over IP</strong> address</p>
<p><a href="https://my-dns.com:32243/health/startup" rel="nofollow noreferrer">https://my-dns.com:32243/health/startup</a></p>
<p>What I am missing here? Thanks.</p>

<p>You can use <code>https</code> instead of <code>http</code> for the <code>httpGet.scheme</code> value of the <code>startupProbe</code>.</p>
