-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathvalues.yaml
More file actions
776 lines (682 loc) · 26.7 KB
/
Copy pathvalues.yaml
File metadata and controls
776 lines (682 loc) · 26.7 KB
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# Default values for airflow.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
airflow:
# group of airflow user
gid: 50000
# Airflow home directory; Used for mount paths
airflowHome: "/usr/local/airflow"
# Airflow executor
# Options: SequentialExecutor, LocalExecutor, CeleryExecutor, KubernetesExecutor
executor: "KubernetesExecutor"
# Airflow version
airflowVersion: 2.4.3
# Default airflow repository
defaultAirflowRepository: quay.io/astronomer/ap-airflow
# Default airflow tag to deploy
defaultAirflowTag: 2.4.3
# Astronomer Airflow images
images:
airflow:
repository: quay.io/astronomer/ap-airflow
tag: ~
statsd:
repository: quay.io/astronomer/ap-statsd-exporter
tag: 0.28.0-3
redis:
repository: quay.io/astronomer/ap-redis
tag: 7.4.3
pgbouncer:
repository: quay.io/astronomer/ap-pgbouncer
tag: 1.24.1-2
pgbouncerExporter:
repository: quay.io/astronomer/ap-pgbouncer-exporter
tag: 0.19.0-3
gitSync:
repository: quay.io/astronomer/ap-git-sync
tag: 4.4.1-2
# Airflow scheduler settings
scheduler:
livenessProbe:
timeoutSeconds: 30
strategy:
type: Recreate
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: component
operator: In
values:
- scheduler
topologyKey: "kubernetes.io/hostname"
logGroomerSidecar:
args: ["/usr/local/bin/clean-airflow-logs"]
triggerer:
persistence:
enabled: false
logGroomerSidecar:
args: ["/usr/local/bin/clean-airflow-logs"]
dagProcessor:
logGroomerSidecar:
args: ["/usr/local/bin/clean-airflow-logs"]
dags:
gitSync:
securityContexts:
container:
readOnlyRootFilesystem: true
# Airflow api server settings
apiServer:
startupProbe:
initialDelaySeconds: 30
# Airflow webserver settings
webserver:
allowPodLogReading: true
args: ["airflow", "webserver"]
startupProbe:
initialDelaySeconds: 30
webserverConfig: |
import os
from airflow import configuration as conf
from flask_appbuilder.security.manager import AUTH_REMOTE_USER
basedir = os.path.abspath(os.path.dirname(__file__))
# The SQLAlchemy connection string.
SQLALCHEMY_DATABASE_URI = conf.get('core', 'SQL_ALCHEMY_CONN')
# Flask-WTF flag for CSRF
CSRF_ENABLED = True
# ----------------------------------------------------
# AUTHENTICATION CONFIG
# ----------------------------------------------------
{{- if .Values.useAstroSecurityManager }}
AUTH_TYPE = AUTH_REMOTE_USER
from astronomer.flask_appbuilder.security import AirflowAstroSecurityManager
SECURITY_MANAGER_CLASS = AirflowAstroSecurityManager
{{- end }}
# Airflow redis settings
redis:
securityContexts:
container:
readOnlyRootFilesystem: true
securityContext:
# Set user to redis:999
runAsUser: 999
fsGroup: 999
persistence:
enabled: true
persistentVolumeClaimRetentionPolicy:
whenDeleted: Delete
# Airflow worker settings
workers:
persistence:
# Enable persistent volumes
enabled: false
logGroomerSidecar:
args: ["/usr/local/bin/clean-airflow-logs"]
# Pgbouncer settings
pgbouncer:
# Pool sizes
metadataPoolSize: 3
resultBackendPoolSize: 2
extraVolumeMounts:
- mountPath: /tmp
name: tmp
extraVolumes:
- emptyDir: {}
name: tmp
metricsExporterSidecar:
securityContexts:
container:
readOnlyRootFilesystem: true
securityContexts:
container:
readOnlyRootFilesystem: true
# Elasticsearch logging configuration
elasticsearch:
connection:
scheme: http
cleanup:
command: ["airflow-cleanup-pods", "--namespace={{ .Release.Namespace }}"]
args: []
airflowLocalSettings: |
{{- if semverCompare "<1.10.12" .Values.airflowVersion }}
from airflow.contrib.kubernetes.pod import Pod
from airflow.configuration import conf
def pod_mutation_hook(pod: Pod):
extra_labels = {
"kubernetes_executor": "False",
"kubernetes_pod_operator": "False"
}
if 'airflow-worker' in pod.labels.keys() or \
conf.get('core', 'EXECUTOR') == "KubernetesExecutor":
extra_labels["kubernetes_executor"] = "True"
else:
extra_labels["kubernetes_pod_operator"] = "True"
pod.labels.update(extra_labels)
pod.tolerations += {{ toJson .Values.podMutation.tolerations }}
pod.affinity.update({{ toJson .Values.podMutation.affinity }})
{{- else }}
from kubernetes.client import models as k8s
from airflow.configuration import conf
def pod_mutation_hook(pod: k8s.V1Pod):
extra_labels = {
"kubernetes_executor": "False",
"kubernetes_pod_operator": "False"
}
if 'airflow-worker' in pod.metadata.labels.keys() or \
conf.get('core', 'EXECUTOR') == "KubernetesExecutor":
extra_labels["kubernetes_executor"] = "True"
else:
extra_labels["kubernetes_pod_operator"] = "True"
pod.metadata.labels.update(extra_labels)
if pod.spec.tolerations:
pod.spec.tolerations += {{ toJson .Values.podMutation.tolerations }}
else:
pod.spec.tolerations = {{ toJson .Values.podMutation.tolerations }}
if pod.spec.affinity:
pod.spec.affinity = pod.spec.affinity.to_dict().update({{ toJson .Values.podMutation.affinity }})
else:
pod.spec.affinity = {{ toJson .Values.podMutation.affinity }}
{{- end }}
podTemplate: |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
---
{{- $nodeSelector := or .Values.workers.nodeSelector .Values.nodeSelector }}
{{- $affinity := or .Values.workers.affinity .Values.affinity }}
{{- $tolerations := or .Values.workers.tolerations .Values.tolerations }}
{{- $securityContext := include "airflowPodSecurityContext" (list . .Values.workers) }}
{{- $containerSecurityContext := include "containerSecurityContext" (list . .Values.workers) }}
apiVersion: v1
kind: Pod
metadata:
name: astronomer-pod-template-file
labels:
tier: airflow
component: worker
release: {{ .Release.Name }}
{{- if or (.Values.labels) (.Values.workers.labels) }}
{{- mustMerge .Values.workers.labels .Values.labels | toYaml | nindent 4 }}
{{- end }}
{{- if or .Values.airflowPodAnnotations .Values.workers.podAnnotations }}
annotations:
{{- if .Values.airflowPodAnnotations }}
{{- toYaml .Values.airflowPodAnnotations | nindent 4 }}
{{- end }}
{{- if .Values.workers.podAnnotations }}
{{- toYaml .Values.workers.podAnnotations | nindent 4 }}
{{- end }}
{{- end }}
spec:
{{- if or (and .Values.dags.gitSync.enabled (not .Values.dags.persistence.enabled)) .Values.workers.preAirflowExtraInitContainers .Values.workers.extraInitContainers }}
initContainers:
{{- if .Values.workers.preAirflowExtraInitContainers }}
{{- tpl (toYaml .Values.workers.preAirflowExtraInitContainers) . | nindent 4 }}
{{- end }}
{{- if and .Values.dags.gitSync.enabled (not .Values.dags.persistence.enabled) }}
{{- include "git_sync_container" (dict "Values" .Values "is_init" "true") | nindent 4 }}
{{- end }}
{{- if .Values.workers.extraInitContainers }}
{{- toYaml .Values.workers.extraInitContainers | nindent 4 }}
{{- end }}
{{- end }}
containers:
- args: []
command: []
envFrom:
{{- include "custom_airflow_environment_from" . | default "\n []" | indent 6 }}
env:
- name: AIRFLOW__CORE__EXECUTOR
value: LocalExecutor
{{- include "standard_airflow_environment" . | indent 6}}
{{- include "custom_airflow_environment" . | indent 6 }}
{{- include "container_extra_envs" (list . .Values.workers.env) | indent 6 }}
image: {{ template "pod_template_image" . }}
imagePullPolicy: {{ .Values.images.airflow.pullPolicy }}
securityContext: {{ $containerSecurityContext | nindent 8 }}
name: base
ports: []
resources: {{- toYaml .Values.workers.resources | nindent 8 }}
volumeMounts:
- mountPath: {{ template "airflow_logs" . }}
name: {{ template "airflow_logs_dir" . }}
- name: config
mountPath: {{ template "airflow_config_path" . }}
subPath: airflow.cfg
readOnly: true
{{- if .Values.airflowLocalSettings }}
- name: config
mountPath: {{ template "airflow_local_setting_path" . }}
subPath: airflow_local_settings.py
readOnly: true
{{- end }}
{{- if or .Values.dags.gitSync.enabled .Values.dags.persistence.enabled }}
{{- include "airflow_dags_mount" . | nindent 8 }}
{{- end }}
{{- if .Values.workers.extraVolumeMounts }}
{{ toYaml .Values.workers.extraVolumeMounts | indent 8 }}
{{- end }}
{{- if .Values.workers.extraContainers }}
{{- toYaml .Values.workers.extraContainers | nindent 4 }}
{{- end }}
hostNetwork: false
{{- if .Values.workers.priorityClassName }}
priorityClassName: {{ .Values.workers.priorityClassName }}
{{- end }}
{{- if .Values.workers.runtimeClassName }}
runtimeClassName: {{ .Values.workers.runtimeClassName }}
{{- end }}
{{- if .Values.workers.hostAliases }}
hostAliases: {{- toYaml .Values.workers.hostAliases | nindent 4 }}
{{- end }}
{{- if or .Values.registry.secretName .Values.registry.connection }}
imagePullSecrets:
- name: {{ template "registry_secret" . }}
{{- end }}
restartPolicy: Never
nodeSelector: {{ toYaml $nodeSelector | nindent 4 }}
securityContext: {{ $securityContext | nindent 4 }}
affinity: {{ toYaml $affinity | nindent 4 }}
tolerations: {{ toYaml $tolerations | nindent 4 }}
serviceAccountName: {{ include "worker.serviceAccountName" . }}
volumes:
{{- if .Values.dags.persistence.enabled }}
- name: dags
persistentVolumeClaim:
claimName: {{ template "airflow_dags_volume_claim" . }}
{{- else if .Values.dags.gitSync.enabled }}
- name: dags
emptyDir: {}
{{- end }}
{{- if .Values.logs.persistence.enabled }}
- name: logs
persistentVolumeClaim:
claimName: {{ template "airflow_logs_volume_claim" . }}
{{- else }}
- emptyDir: {}
name: {{ template "airflow_logs_dir" . }}
{{- end }}
{{- if and .Values.dags.gitSync.enabled .Values.dags.gitSync.sshKeySecret }}
{{- include "git_sync_ssh_key_volume" . | nindent 2 }}
{{- end }}
- configMap:
name: {{ include "airflow_config" . }}
name: config
{{- if .Values.workers.extraVolumes }}
{{ toYaml .Values.workers.extraVolumes | nindent 2 }}
{{- end }}
# Config Settings for pod_mutation_hook
podMutation:
# Tolerations provided here would be applied using pod_mutation_hook
# So any pods spun up using KubernetesExecutor or KubernetesPodOperator will contain these tolerations.
tolerations: []
# - key: "dynamic-pods"
# operator: "Equal"
# value: "true"
# effect: "NoSchedule"
# Pods spun up would land in the node that matches the affinity
affinity: {}
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: "astronomer.io/dynamic-pods"
# operator: In
# values:
# - "true"
migrateDatabaseJob:
annotations:
"sidecar.istio.io/inject": "false"
config:
api:
# if astroSecurity manager is enabled and the airflow version is greater than 2 we want this to equal astronomer.flask_appbuilder.current_user_backend
# if astroSecurity manager is disabled and the airflow version is greater than 2 we want this to equal airflow.api.auth.backend.deny_all
# if astroSecurity manager is disabled and the airflow version is less than 2 we want this to equal airflow.api.auth.backend.default
auth_backend: '{{ ternary "astronomer.flask_appbuilder.current_user_backend" (ternary "airflow.api.auth.backend.deny_all" "airflow.api.auth.backend.default" (semverCompare ">=2.0.0" .Values.airflowVersion)) (and (.Values.useAstroSecurityManager) (semverCompare ">=2.0.0" .Values.airflowVersion)) }}'
operators:
default_queue: '{{ semverCompare ">=3.0.0" .Values.airflowVersion | ternary "default" "celery" }}'
celery: # compat
default_queue: '{{ semverCompare ">=3.0.0" .Values.airflowVersion | ternary "default" "celery" }}'
# Set Flower URL prefix to empty string
# Remove after https://github.com/apache/airflow/issues/27402 is resolved
flower_url_prefix: ""
core:
execution_api_server_url: '{{ (printf "http://%s-api-server:%d/%s/airflow/execution/" (include "airflow.fullname" .) (int .Values.ports.apiServer) .Release.Name ) -}}'
webserver:
expose_config: True
elasticsearch:
write_stdout: True
elasticsearch_write_stdout: True
elasticsearch_json_format: True
# "{dag_id}-{task_id}-{run_id}-{map_index}-{try_number}" for airflow >= 2.3.0 ref https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#log-id-template
# "{dag_id}_{task_id}_{execution_date}_{try_number}" for airflow < 2.3.0
log_id_template: '{{ include "airflow.logIdTemplate" . }}'
# For Airflow <1.10.4
elasticsearch_log_id_template: "{dag_id}_{task_id}_{execution_date}_{try_number}"
# The following kubernetes config is required to support Airflow 1.10.10
kubernetes:
dags_in_image: True
worker_service_account_name: '{{ include "worker.serviceAccountName" . }}'
image_pull_secrets: '{{ template "registry_secret" . }}'
kubernetes_labels:
tier: airflow
component: worker
release: "{{ .Release.Name }}"
kubernetes_secrets:
AIRFLOW__CORE__SQL_ALCHEMY_CONN: '{{ printf "%s=connection" (include "airflow_metadata_secret" .) }}'
AIRFLOW_CONN_AIRFLOW_DB: '{{ printf "%s=connection" (include "airflow_metadata_secret" .) }}'
AIRFLOW__CORE__FERNET_KEY: '{{ printf "%s=fernet-key" (include "fernet_key_secret" .) }}'
AIRFLOW__API_AUTH__JWT_SECRET: '{{ printf "%s=fernet-key" (include "fernet_key_secret" .) }}'
# Only required when running on the platform, but works elsewhere too
astronomer:
jwt_signing_cert: /etc/airflow/tls/tls.crt
# Should the Astronomer Security Manager be used for the webserver
useAstroSecurityManager: False
statsd:
securityContexts:
container:
readOnlyRootFilesystem: true
overrideMappings:
# Map dot separated stats to labels
- match: airflow.operator_successes_(.*)
match_type: regex
name: "airflow_operator_successes"
labels:
# This is here to make the Astro UI work
# because it's expecting an operator label
operator: "Value"
- match: airflow.operator_failures_(.*)
match_type: regex
name: "airflow_operator_failures"
labels:
operator: "Value"
- match: airflow.scheduler_heartbeat
match_type: regex
name: "airflow_scheduler_heartbeat"
labels:
type: counter
- match: airflow.dag.*.*.duration
name: "airflow_task_duration"
labels: {}
- match: airflow.dagrun.duration.success.*
name: "airflow_dagrun_duration"
labels: {}
- match: airflow.dagrun.duration.failed.*
name: "airflow_dagrun_failed"
labels: {}
- match: airflow.dagrun.schedule_delay.*
name: "airflow_dagrun_schedule_delay"
labels: {}
- match: airflow.dag_processing.last_runtime.*
name: "airflow_dag_processing_last_runtime"
labels: {}
- match: airflow.dag_processing.last_run.seconds_ago.*
name: "airflow_dag_processing_last_run_seconds_ago"
labels: {}
- match: airflow.pool.open_slots.*
name: "airflow_pool_open_slots"
labels:
pool: "$1"
- match: airflow.pool.used_slots.*
name: "airflow_pool_used_slots"
labels:
pool: "$1"
- match: airflow.pool.starving_tasks.*
name: "airflow_pool_starving_tasks"
labels:
pool: "$1"
- match: airflow.zombies_killed
name: "airflow_zombies_killed"
labels: {}
- match: airflow.executor.running_tasks
name: "airflow_executor_running_tasks"
labels: {}
- match: airflow.executor.queued_tasks
name: "airflow_executor_queued_tasks"
labels: {}
- match: airflow.ti_failures
name: "airflow_ti_failures"
labels: {}
- match: airflow.ti_successes
name: "airflow_ti_successes"
labels: {}
- match: airflow.dagbag_size
name: "airflow_dagbag_size"
labels: {}
# drop any metric not matched
- match: "."
match_type: regex
action: drop
name: "dropped"
postgresql:
image:
registry: quay.io
repository: astronomer/ap-postgresql
tag: 17.6.0
# Enable security context constraints required for OpenShift
sccEnabled: false
# Extra objects to deploy (these are passed through `tpl`)
extraObjects: []
# Enable nginx auth sidecar
authSidecar:
enabled: false
repository: quay.io/astronomer/ap-auth-sidecar
tag: 1.27.4-1
pullPolicy: IfNotPresent
port: 8084
securityContext: {}
resources: {}
livenessProbe: {}
readinessProbe: {}
ingressAllowedNamespaces: ~
annotations: {}
# Auth request caching for authSidecar deployments
# Reduces load on Houston by caching /v1/authorization responses
# Only applies when using authSidecar (authSidecar.enabled: true)
authCache:
# Enable auth response caching
enabled: false
# Cache key - identifies unique users for caching
# Default uses session cookies to uniquely identify users
key: "$http_cookie"
# Cache duration per HTTP response code
# Format: "code1 duration1, code2 duration2, ..."
# Success responses (200) cached for 15 minutes
# Auth failures (401, 403) cached for 1 minute to allow quick retry
# Note: Cached credentials may remain valid for the duration specified,
# even if revoked in Houston. This is a trade-off between performance
# and immediate revocation. The default JWT validity is 24 hours, so
# 15 minute caching is more conservative.
duration: "200 15m, 401 403 1m"
loggingSidecar:
enabled: false
name: sidecar-log-consumer
customConfig: false
indexPattern: "%Y.%m.%d"
indexNamePrefix: vector
image: quay.io/astronomer/ap-vector:0.45.0-1
resources: {}
livenessProbe: {}
readinessProbe: {}
# Ingress configuration
ingress:
# Enable ingress resource
enabled: false
# Enables using a specific ingress class for the deployment. If not set, will default to the cluster default.
ingressClassName: ~
# Enable for cert-manager or kube-lego
acme: false
# Name of tls secret to use on ingress
tlsSecretName: ~
# Annotations always injected when configuring webserver Ingress object
webserverAnnotations: {}
# Annotations always injected when configuring Flower Ingress object
flowerAnnotations: {}
# Annotations always injected when configuring Dag Server Ingress object
dagServerAnnotations: {}
# Base domain for ingress vhosts
baseDomain: ~
# Enable platform authentication
auth:
enabled: true
# Auth request caching for NGINX Ingress Controller
# Reduces load on Houston by caching /v1/authorization responses
# Only applies when using NGINX Ingress Controller (authSidecar.enabled: false)
authCache:
# Enable auth response caching
enabled: false
# Cache key - identifies unique users for caching
# Default uses session cookies to uniquely identify users
key: "$http_cookie"
# Cache duration per HTTP response code
# Format: "code1 duration1, code2 duration2, ..."
# Success responses (200) cached for 15 minutes
# Auth failures (401, 403) cached for 1 minute to allow quick retry
# Note: Cached credentials may remain valid for the duration specified,
# even if revoked in Houston. This is a trade-off between performance
# and immediate revocation. The default JWT validity is 24 hours, so
# 15 minute caching is more conservative.
duration: "200 15m, 401 403 1m"
# This section describes the astronomer platform, and is used to share values
# from astronomer that are useful here, like networkPolicies that need to know
# what namespace astronomer is running in.
platform:
release: ~
namespace: ~
houstonAuthServiceEndpointUrl: ~
dataPlaneBaseDomain: ~
controlPlaneBaseDomain: ~
mode: ~
astronomer:
images:
certgenerator:
repository: quay.io/astronomer/ap-certgenerator
tag: 0.1.14
dagDeploy:
enabled: false
images:
dagServer:
repository: quay.io/astronomer/ap-dag-deploy
tag: 0.7.0
imagePullPolicy: IfNotPresent
livenessProbe: {}
readinessProbe: {}
terminationGracePeriodSeconds: 30
podAnnotations: {}
extraEnv: []
extraContainers: []
persistence:
enabled: true
persistentVolumeClaimRetentionPolicy: ~
size: 10Gi
storageClassName: ~
annotations: {}
nodeSelector: {}
affinity: {}
tolerations: []
ports:
dagServerHttp: 8000
serviceAccount:
annotations: {}
name: ~
create: true
resources: {}
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
# This setting tells kubernetes that its ok to evict
# when it wants to scale a node down.
safeToEvict: true
securityContexts:
pod: {}
container: {}
flower:
extraVolumeMounts:
- mountPath: /usr/local/airflow
name: usr-local-airflow
- mountPath: /tmp
name: tmp
extraVolumes:
- emptyDir: {}
name: usr-local-airflow
- emptyDir: {}
name: tmp
gitSyncRelay:
enabled: false
# extraAnnotations to add to the git-sync-relay ingress
extraAnnotations: {}
# 'repoShareMode' must be git_daemon or shared_volume
repoShareMode: "git_daemon"
# 'repoFetchMode' must be webhook or poll
repoFetchMode: poll
# webhookSecurityKey is only needed when repoFetchMode=webhook
webhookSecretKey: ~
securityContext: {}
terminationGracePeriodSeconds: 30
gitDaemon: {}
gitSync:
webhookPort: 8000
images:
gitDaemon:
repository: "quay.io/astronomer/ap-git-daemon"
tag: "3.21.3-6"
gitSync:
repository: "quay.io/astronomer/ap-git-sync-relay"
tag: "0.2.1"
repo:
url: ~
branch: main
depth: 1 # default to a shallow clone because it is faster and this isn't a dev environment
wait: 60 # seconds between synchronizations with upstream git repo
subPath: ~ # if your dags dir is not the repo root, specify the path relative to the repo root
sshPrivateKeySecretName: ~ # The name of a secret that holds the private key. This secret is not maintained by this chart.
gitSyncTimeout: 300 # How long to wait for the clone or fetch to take before aborting
# knownHosts can be generated with: ssh-keyscan -t ed25519 github.com 2>/dev/null
knownHosts: |
# https://api.github.com/meta
github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=
github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
# https://docs.gitlab.com/ee/user/gitlab_com/#ssh-host-keys-fingerprints
gitlab.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsj2bNKTBSpIYDEGk9KxsGh3mySTRgMtXL583qmBpzeQ+jqCMRgBqB98u3z++J1sKlXHWfM9dyhSevkMwSbhoR8XIq/U0tCNyokEi/ueaBMCvbcTHhO7FcwzY92WK4Yt0aGROY5qX2UKSeOvuP4D6TPqKF1onrSzH9bx9XUf2lEdWT/ia1NEKjunUqu1xOB/StKDHMoX4/OKyIzuS0q/T1zOATthvasJFoPrAjkohTyaDUz2LN5JoH839hViyEG82yB+MjcFV5MU3N1l1QL3cVUCh93xSaua1N85qivl+siMkPGbO5xR/En4iEY6K2XPASUEMaieWVNTRCtJ4S8H+9
gitlab.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFSMqzJeV9rUzU4kWitGjeR4PWSa29SPqJ1fVkhtj3Hw9xjLVXVYrU9QlYWrOLXBpQ6KWjbjTDTdDkoohFzgbEY=
gitlab.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf
extraContainers: []
# volumeSync controls aspects of the volume that is used when "repoShareMode: shared_volume" is configured.
volumeSync:
volumeSize: 10Gi
# storageClassName specifies the name of the storageClass that is used when "repoShareMode: shared_volume" is configured.
# It *MUST* support ReadWriteMany. This value is required when using "repoShareMode: shared_volume". If it is left empty,
# or if the given storageClass does not support ReadWriteMany, all airflow pods that use the dags files will fail.
storageClassName: ~
serviceAccount:
create: true
annotations: {}
name: ~
nodeSelector: {}
affinity: {}
tolerations: []
certgenerator:
extraAnnotations: {}
affinity: {}
# Labels that are attached to all pods created by the airflow-chart, but not the sub-charts.
labels: {}