-
Notifications
You must be signed in to change notification settings - Fork 0
/
override.yaml
98 lines (82 loc) · 3.09 KB
/
override.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
airflowVersion: "2.3.4"
defaultAirflowTag: "2.3.4"
executor: "KubernetesExecutor"
images:
airflow:
repository: custom-airflow-image
tag: latest
pullPolicy: Never
scheduler:
extraVolumes: # this will create the volume from the directory
- name: airflow-home
hostPath:
path: /opt/airflow/mounted-from-host/
extraVolumeMounts: # this will get the volume and mount it to that path in the container
- name: airflow-home
mountPath: /opt/airflow/airflow-home # location in the container it will put the directory mentioned below.
readOnly: false
webserver:
extraVolumes: # this will create the volume from the directory
- name: airflow-home
hostPath:
path: /opt/airflow/mounted-from-host/
extraVolumeMounts: # this will get the volume and mount it to that path in the container
- name: airflow-home
mountPath: /opt/airflow/airflow-home # location in the container it will put the directory mentioned below.
readOnly: false
workers:
extraVolumes: # this will create the volume from the directory
- name: airflow-home
hostPath:
path: /opt/airflow/mounted-from-host/
extraVolumeMounts: # this will get the volume and mount it to that path in the container
- name: airflow-home
mountPath: /opt/airflow/airflow-home # location in the container it will put the directory mentioned below.
readOnly: false
extraEnv: |
- name: AIRFLOW__CORE__LOAD_EXAMPLES
value: "False"
# dags:
# persistence:
# enabled: true
# size: 1Gi
# accessMode: ReadWriteOnce
# existingClaim: airflow-dag
# storageClassName: airflow-storageclass
# gitSync:
# enabled: false
# secret:
# - envName: "AIRFLOW_CONN_GCP"
# secretName: "my-airflow-connections"
# secretKey: "AIRFLOW_CONN_GCP"
# - envName: "my-env"
# secretName: "my-secret-name"
# secretKey: "my-secret-key"
# extraSecrets:
# my-airflow-connections:
# data: |
# AIRFLOW_CONN_GCP: 'base64_encoded_gcp_conn_string'
# my-secret-name:
# stringData: |
# my-secret-key: my-secret
# extraEnvFrom: |
# - configMapRef:
# name: '{{ .Release.Name }}-airflow-variables'
env:
- name: "AIRFLOW_VAR_KEY"
value: "value_1"
- name: "AIRFLOW_VAR_ANOTHER_KEY"
value: "value_2"
- name: "AIRFLOW__CORE__DAGS_FOLDER"
value: "/opt/airflow/airflow-home/dags"
extraConfigMaps: # This configures Airflow Variables (WebUI -> Airflow variables)
'{{ .Release.Name }}-airflow-variables':
data: |
AIRFLOW_VAR_HELLO_MESSAGE: "Hi!"
# logs:
# persistence:
# enabled: true
# size: 1Gi
# storageClassName: airflow-storageclass
# existingClaim: airflow-log