{{ template "chart.header" . }}
This helm chart starts two deployments: airflow webserver and airflow scheduler. These services need the namenode deployment to be ready and running.

{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}

{{ template "chart.requirementsSection" . }}

## Terminating airflow containers

We use hopsfs-mount as a background process in the sidecar container. Therefore, the SIGINT signal of kubelet is not received well. We added a preStop hook to this container in order to prevent the sidecar container to hang in `TERMINATING` stage as follows:

```yaml
  lifecycle:
    preStop:
      exec:
        # Nuke and unmount the hdfs mount
        command: ["/bin/bash", "-c", "umount -l $MOUNTING_DIR && rm -rf $MOUNTING_DIR"]
```

Notice that the previous hook only works when the `grace-period` of the container is not zero.

{{ template "chart.valuesSection" . }}