kubernetes startup probe failed when deploying over Azure Kubernetes Services

12/7/2021

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.

-- user584018
asp.net-core-3.1
health-check
kubernetes
kubernetes-ingress

1 Answer

12/7/2021

You can use https instead of http for the httpGet.scheme value of the startupProbe.

-- Raymond Hartoyo
Source: StackOverflow