-
Notifications
You must be signed in to change notification settings - Fork 4
/
airflow-celery.yaml
226 lines (213 loc) · 4.81 KB
/
airflow-celery.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
###################################
# Airflow - Common Configs
###################################
airflow:
image:
repository: apache/airflow
tag: 1.10.12-python3.6
## values: Always or IfNotPresent
pullPolicy: IfNotPresent
pullSecret: ""
executor: CeleryExecutor
fernetKey: "7T512UXSSmBOkpWimFHIVb8jK6lfmSAvx4mO6Arehnc="
config: {}
podAnnotations: {}
extraEnv: []
extraConfigmapMounts: []
extraContainers: []
extraPipPackages: []
extraVolumeMounts: []
extraVolumes: []
###################################
# Airflow - Scheduler Configs
###################################
scheduler:
resources: {}
nodeSelector: {}
affinity: {}
tolerations: []
securityContext: {}
labels: {}
podLabels: {}
annotations: {}
podAnnotations: {}
safeToEvict: true
podDisruptionBudget:
enabled: true
maxUnavailable: "100%"
minAvailable: ""
connections: []
refreshConnections: true
existingSecretConnections: ""
variables: |
{}
pools: |
{}
numRuns: -1
initdb: true
preinitdb: false
initialStartupDelay: 0
livenessProbe:
enabled: true
initialDelaySeconds: 300
periodSeconds: 30
failureThreshold: 5
secretsDir: /var/airflow/secrets
secrets: []
secretsMap: ""
extraInitContainers: []
###################################
# Airflow - WebUI Configs
###################################
web:
replicas: 1
safeToEvict: true
podDisruptionBudget:
enabled: false
maxUnavailable: ""
minAvailable: ""
service:
sessionAffinity: "None"
type: ClusterIP
externalPort: 8080
loadBalancerIP: ""
nodePort:
http: ""
baseUrl: "http://localhost:8080"
serializeDAGs: false
initialStartupDelay: 0
minReadySeconds: 5
readinessProbe:
enabled: false
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 3
livenessProbe:
enabled: true
scheme: HTTP
initialDelaySeconds: 300
periodSeconds: 30
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 2
secretsDir: /var/airflow/secrets
secretsMap: ""
###################################
# Airflow - Worker Configs
###################################
workers:
enabled: true
replicas: 2
autoscaling:
enabled: false
maxReplicas: 2
###################################
# Airflow - Flower Configs
###################################
flower:
enabled: true
###################################
# Airflow - Logs Configs
###################################
logs:
path: /opt/airflow/logs
persistence:
enabled: false
###################################
# Airflow - DAGs Configs
###################################
dags:
path: /opt/airflow/dags
doNotPickle: false
installRequirements: false
persistence:
enabled: false
existingClaim: ""
subPath: ""
storageClass: ""
accessMode: ReadOnlyMany
size: 1Gi
git:
url: https://github.com/damavis/airflow-dags.git
ref: master
secret: ""
sshKeyscan: false
privateKeyName: id_rsa
repoHost: ""
repoPort: 22
gitSync:
enabled: true
image:
repository: alpine/git
tag: latest
pullPolicy: IfNotPresent
refreshTime: 60
initContainer:
enabled: true
image:
repository: alpine/git
tag: latest
pullPolicy: IfNotPresent
mountPath: "/dags"
syncSubPath: ""
###################################
# Kubernetes - RBAC
###################################
rbac:
create: true
events: false
###################################
# Database - PostgreSQL Chart
# - https://github.com/helm/charts/tree/master/stable/postgresql
###################################
postgresql:
enabled: true
postgresqlDatabase: airflow
postgresqlUsername: postgres
postgresqlPassword: airflow
existingSecret: ""
existingSecretKey: "postgresql-password"
persistence:
enabled: true
accessModes:
- ReadWriteOnce
size: 8Gi
## configs for the postgres StatefulSet
master:
## annotations for the postgres Pod
##
podAnnotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
###################################
# Database - Redis Chart
# - https://github.com/helm/charts/tree/master/stable/redis
###################################
redis:
enabled: true
password: airflow
existingSecret: ""
existingSecretPasswordKey: "redis-password"
cluster:
enabled: false
slaveCount: 1
master:
podAnnotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
persistence:
enabled: false
storageClass: ""
accessModes:
- ReadWriteOnce
size: 8Gi
slave:
podAnnotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
persistence:
enabled: false
storageClass: ""
accessModes:
- ReadWriteOnce
size: 8Gi