AGIC service health probe by default goes to default probe eventhough I define the Ingress rules

Hari Prasad 0 Reputation points
2024-09-09T11:12:01.91+00:00

I am using AGIC for my cluster. Recently I am observing the behaviour of health probe for each service we deployed is getting added to default probe in app gateway instead of creating a new one.

Initially I thought problem with specific namespace but with other namespace also it is getting added to default probe.

I am using these annotations in helm

    appgw.ingress.kubernetes.io/backend-hostname: ""
    appgw.ingress.kubernetes.io/use-private-ip: "true"
    appgw.ingress.kubernetes.io/health-probe-path:  ""
    appgw.ingress.kubernetes.io/health-probe-interval: ""
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,079 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Akshay kumar Mandha 390 Reputation points Microsoft Vendor
    2024-09-09T18:13:50.2966667+00:00

    Hi Hari Prasad,
    Welcome to the Microsoft Q&A Platform. Thank you for posting your query here.

    Based upon your query, It looks like the health probes are being added to the default probe in your App Gateway because the annotations in your Helm chart are not properly set this might cause issue. Specifically, the health-probe-path and health-probe-interval annotations are empty, so AGIC is using the default health probe settings.

    To fix this, you need to provide values for these annotations. For example, set health-probe-path to a valid path like /healthz and health-probe-interval to a value like 10. This way, a new health probe will be created for each service with these specific settings.

    You should also consider setting the health-probe-protocol annotation to specify whether the probe should use HTTP or HTTPS.

    If an answer has been helpful, please consider accepting the answer and "Upvote" to help increase visibility of this question for other members of the Microsoft Q&A community. User's image


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.