Skip to content

Add helm chart parameters to customise http probe paths for webserver / api server #62944

@stephen-bracken

Description

@stephen-bracken

Description

The probe urls for the api server and webserver templates default to {webserver.base_url}/health values in the Http probes, but this causes issues with multi cluster deployments.

Use case/motivation

We are rolling out airflow deployments that are running active-active on multiple kubernetes clusters using a shared database that is also active-active, but the liveness probes on the pods point to the webserver base url, which a common cname which we use for the webservers from both clusters.

This means that if the primary webserver stops responding and fails the liveness / readiness probes then both webservers will register as unhealthy. To resolve this I would like to reroute the Http probes to localhost/health or the local pod url (e.g. airflow-webserver-abcde.airflow-webserver.airflow.svc.cluster.local/health) using the kubernetes dns.

i.e. the webserver liveness probes point to https://airflow-deployment.example.com/health, which both webservers are using as the base_url. This would allow us to use a load balancer to route traffic to both webservers, whilst accurately marking webserver pods as unhealthy if they fail to respond to a local liveness probe.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:helm-chartAirflow Helm Chartkind:featureFeature Requestsneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions