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 add any definitions that are compatible with Kubernetes probes. However, because Kubernetes doesn’t allow having more than one handler of probes, you must be sure that you don’t define probes that use both exec and httpGet. For consistency, the examples shown in the Default Astronomer Helm probe configurations use httpGet, but you 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 the APC API.livenessProbe, which looks like this:
values.yaml file for your APC API configuration, then adjust the values you want to customize. Then apply a platform config change.
Reference Helm values within your probes
The liveness and readiness probes specified in Helm values are passed through the Helm template function, which allows you to reference other Helm values within the probes. Specifically, thelivenessProbe and readinessProbe values are rendered to YAML, then passed through the Helm template function, which renders any Helm template syntax 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 alertmanager 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 doesn’t have probes defined by default, you can see which components support custom probe configurations below.Airflow operator
The following can also be configured to include liveness and readiness probes:Alert manager
The following can also be configured to include liveness and readiness probes:Astronomer
Elasticsearch
External-es-proxy
The following components don’t have probes configured by default:Vector
The following components don’t have probes configured by default:Global
The following components don’t have probes configured by default:Grafana
Kube-state
The following components don’t have probes configured by default:NATS
nginx
The following components don’t 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