how to fix unhealthy pod issue via to startup probe

Dawod Kabha 0 Reputation points
2023-10-04T13:17:27.5+00:00

hi
while trying to raise up my application on azure cluster AKS , i face issue with the pod healthy stage during the startup probe with the following error
Startup probe failed: Get "http://10.224.0.96:80/": dial tcp 10.224.0.96:80: connect: connection refusedtype: Warning

when i remove the startup probe from deployment yaml , the pod is become healthy officialy
the only log message that i have is the following :
[40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
Application is shutting down...

there is no more logs / log messages i dont know what is the rca of this issue


startupProbe:
              httpGet:
                path: /
                port: 80
                scheme: HTTP
              initialDelaySeconds: 300
              timeoutSeconds: 1
              periodSeconds: 15
              successThreshold: 1
              failureThreshold: 30
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,372 questions
{count} votes

1 answer

Sort by: Most helpful
  1. mutaz-msft 2,351 Reputation points Microsoft Employee
    2023-10-05T10:33:28.89+00:00

    Hi @Dawod Kabha,

    The kubelet uses startup probes to know when a container application has started, and when you removed it then you removed the validation of your application, the pod started but this does not mean your application is working properly, and from the logs, your application is not working and you need to increase the log level on your application to get more insight why the application is shutting down.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.