Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ The following tables lists the configurable parameters of the Airflow chart and
| `scheduler.resources.requests.memory` | Memory Request of scheduler | `~` |
| `scheduler.airflowLocalSettings` | Custom Airflow local settings python file | `~` |
| `scheduler.safeToEvict` | Allow Kubernetes to evict scheduler pods if needed (node downscaling) | `true` |
| `webserver.baseUrl` | The base url of the website | `~` |
| `webserver.livenessProbe.initialDelaySeconds` | Webserver LivenessProbe initial delay | `15` |
| `webserver.livenessProbe.timeoutSeconds` | Webserver LivenessProbe timeout seconds | `30` |
| `webserver.livenessProbe.failureThreshold` | Webserver LivenessProbe failure threshold | `20` |
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/_helpers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
value: {{ printf "%s=%s" $config.secretName $config.secretKey }}
{{- end }}
{{ end }}
{{- if .Values.webserver.baseUrl }}
- name: AIRFLOW__WEBSERVER__BASE_URL
value: {{ .Values.webserver.baseUrl }}
{{ end }}
{{- end }}

{{/* Git ssh key volume */}}
Expand Down
4 changes: 2 additions & 2 deletions chart/templates/webserver/webserver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ spec:
containerPort: {{ .Values.ports.airflowUI }}
livenessProbe:
httpGet:
path: /health
path: {{ if .Values.webserver.baseUrl }}{{ with urlParse .Values.webserver.baseUrl }}{{ index . "path" }}{{ end }}{{ end }}/health
port: {{ .Values.ports.airflowUI }}
initialDelaySeconds: {{ .Values.webserver.livenessProbe.initialDelaySeconds | default 15 }}
timeoutSeconds: {{ .Values.webserver.livenessProbe.timeoutSeconds | default 30 }}
failureThreshold: {{ .Values.webserver.livenessProbe.failureThreshold | default 20 }}
periodSeconds: {{ .Values.webserver.livenessProbe.periodSeconds | default 5 }}
readinessProbe:
httpGet:
path: /health
path: {{ if .Values.webserver.baseUrl }}{{ with urlParse .Values.webserver.baseUrl }}{{ index . "path" }}{{ end }}{{ end }}/health
port: {{ .Values.ports.airflowUI }}
initialDelaySeconds: {{ .Values.webserver.readinessProbe.initialDelaySeconds | default 15 }}
timeoutSeconds: {{ .Values.webserver.readinessProbe.timeoutSeconds | default 30 }}
Expand Down
3 changes: 3 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ webserver:
service:
type: ClusterIP

# The base url of the website. Also sets the AIRFLOW__WEBSERVER__BASE_URL variable.
# baseUrl: ""

# Flower settings
flower:
# Additional network policies as needed
Expand Down