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.
startupProbe: httpGet: path: /health/startup port: 32243 failureThreshold: 25 periodSeconds: 10
I can see that internally it's hit the endpoint with IP address overs http.
Startup probe failed: Get "http://10.22.148.185:32243/health/startup": dial tcp 10.22.148.185:32243: connect: connection refused
When I removed startup probe from YAML definition, then the startup endpoint is working as expected, here I am checking with FQDN over IP address
https://my-dns.com:32243/health/startup
What I am missing here? Thanks.
CodePudding user response:
You can use https
instead of http
for the httpGet.scheme
value of the startupProbe
.