Default probe behavior
You can use the following structure to define your probes in yourvalues.yaml file. For example, you might want to adjust any default values by configuring the amount of time until a timeout. You can refer to some of the existing Default probe configurations.
You can add any definitions that are compatible with Kubernetes probes. However, because Kubernetes does not allow having more than one handler of probes you must be sure that you do not define probes to use both exec and httpGet. For consistency, the examples shown in the Default Astronomer Helm probe configurations use httpGet, but can use exec when appropriate.
Liveness probe templates
Readiness probe templates
Retrieve existing probe definitions
You can retrieve the default probe definitions from the Kubernetes manifest. The following example shows how to retrieve the definitions for Houston.livenessProbe, which looks like the following:
values.yaml file for your Houston configuration, then adjust the values you want to customize. Then apply a platform config change.
Reference Helm values within your probes
Because values for the liveness and readiness probes are passed through the Helm template function, you can reference Helm values within the probes. Specifically, thelivenessProbe and readiness values are rendered to yaml, then passed through the Helm template function, which renders any Helm template syntaxes into the produced yaml.
For example, instead of hardcoding values for your probes to match values defined by other configurations in your values.yaml file, you can use the configuration variable itself.
The following example, using the alertsmanager yaml configuration, shows how the path and ports are defined by Values.ports.http and Values.prefixURL elsewhere in the values.yaml file.
Default Astronomer Helm probe configurations
The following components have their default probe configuration defined in the Astronomer Helm chart. If a component does not have probes defined by default, you can see which options can have custom probe configurations.Alert manager
Astronomer
Elasticsearch
External-es-proxy
The following components do not have probes configured by default:Fluentd
Global
The following components do not have probes configured by default:Grafana
Kibana
Kube-state
The following components do not have probes configured by default:NATS
nginx
The following components do not have probes configured by default:PgBouncer
PostgreSQL
Prometheus
STAN
Default Airflow chart probe configurations
You can also define liveness and readiness probes using the Astronomer Airflow chart.Airflow
This includes:dagProcessorflowerpgbouncerpostgresqlschedulertriggererwebserverworkers