ashb commented on a change in pull request #8777:
URL: https://github.com/apache/airflow/pull/8777#discussion_r434420073
##########
File path: chart/values.yaml
##########
@@ -0,0 +1,416 @@
+# Default values for airflow.
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+
+# User and group of airflow user
+uid: 100
+gid: 101
+
+# Select certain nodes for airflow pods.
+nodeSelector: {}
+affinity: {}
+tolerations: []
+
+# Add common labels to all objects and pods defined in this chart.
+labels: {}
+
+# Network policy configuration
+networkPolicies:
+ # Enabled network policies
+ enabled: false
+
+# Airflow home directory
+# Used for mount paths
+airflowHome: "/usr/local/airflow"
+
+# Extra annotations to apply to all
+# Airflow pods
+airflowPodAnnotations: {}
+
+# Enable RBAC (default on most clusters these days)
+rbacEnabled: true
+
+# Airflow executor
+# Options: SequentialExecutor, LocalExecutor, CeleryExecutor,
KubernetesExecutor
+executor: "KubernetesExecutor"
+
+# If this is true and using
LocalExecutor/SequentialExecutor/KubernetesExecutor, the scheudler's
+# service account will have access to communicate with the api-server and
launch pods.
+# If this is true and using the CeleryExecutor, the workers will be able to
launch pods.
+allowPodLaunching: true
+
+# Default airflow repository
+defaultAirflowRepository: astronomerinc/ap-airflow
+
+# Default airflow tag to deploy
+defaultAirflowTag: 1.10.7-alpine3.10
+
+# Images
+images:
+ airflow:
+ repository: astronomerinc/ap-airflow
+ tag: ~
+ pullPolicy: IfNotPresent
+ flower:
+ repository: astronomerinc/ap-airflow
+ tag: ~
+ pullPolicy: IfNotPresent
+ statsd:
+ repository: astronomerinc/ap-statsd-exporter
+ tag: 0.11.0
+ pullPolicy: IfNotPresent
+ redis:
+ repository: astronomerinc/ap-redis
+ tag: 0.11.0
+ pullPolicy: IfNotPresent
+ pgbouncer:
+ repository: astronomerinc/ap-pgbouncer
+ tag: 0.11.0
+ pullPolicy: IfNotPresent
+ pgbouncerExporter:
+ repository: astronomerinc/ap-pgbouncer-exporter
+ tag: 0.11.0
+ pullPolicy: IfNotPresent
+
+# Environment variables for all airflow containers
+env: []
+# - name: ""
+# value: ""
+
+# Secrets for all airflow containers
+secret: []
+# - envName: ""
+# secretName: ""
+# secretKey: ""
+
+# Airflow database config
+data:
+ # If secret names are provided, use those secrets
+ metadataSecretName: ~
+ resultBackendSecretName: ~
+
+ # Otherwise pass connection values in
+ metadataConnection:
+ user: postgres
+ pass: postgres
+ host: ~
+ port: 5432
+ db: postgres
+ sslmode: disable
+ resultBackendConnection:
+ user: postgres
+ pass: postgres
+ host: ~
+ port: 5432
+ db: postgres
+ sslmode: disable
+
+# Fernet key settings
+fernetKey: ~
+fernetKeySecretName: ~
+
+# Airflow Worker Config
+workers:
+ # Number of airflow celery workers in StatefulSet
+ replicas: 1
+
+ # Allow KEDA autoscaling.
+ # Persistence.enabled must be set to false to use KEDA.
+ keda:
+ enabled: false
+ namespaceLabels: {}
+
+ # How often KEDA polls the airflow DB to report new scale requests to the
HPA
+ pollingInterval: 5
+
+ # How many seconds KEDA will wait before scaling to zero.
+ # Note that HPA has a seperate cooldwon period for scale-downs
+ cooldownPeriod: 30
+
+ # Maximum number of workers created by keda
+ maxReplicaCount: 10
+
+ persistence:
+ # Enable persistent volumes
+ enabled: true
+ # Volume size for worker StatefulSet
+ size: 100Gi
+ # If using a custom storageClass, pass name ref to all statefulSets here
+ storageClassName:
+ # Execute init container to chown log directory.
+ # This is currently only needed in KinD, due to usage
+ # of local-path provisioner.
+ fixPermissions: false
+
+ resources: {}
+ # limits:
+ # cpu: 100m
+ # memory: 128Mi
+ # requests:
+ # cpu: 100m
+ # memory: 128Mi
+
+ # Grace period for tasks to finish after SIGTERM is sent from kubernetes
+ terminationGracePeriodSeconds: 600
+
+ # This setting tells kubernetes that its ok to evict
+ # when it wants to scale a node down.
+ safeToEvict: true
+
+# Airflow scheduler settings
+scheduler:
+ # Scheduler pod disruption budget
+ podDisruptionBudget:
+ enabled: false
+
+ # PDB configuration
+ config:
+ maxUnavailable: 1
+
+ resources: {}
+ # limits:
+ # cpu: 100m
+ # memory: 128Mi
+ # requests:
+ # cpu: 100m
+ # memory: 128Mi
+
+ # This setting can overwrite
+ # podMutation settings.
+ airflowLocalSettings: ~
+
+ # This setting tells kubernetes that its ok to evict
+ # when it wants to scale a node down.
+ safeToEvict: true
+
+# Airflow webserver settings
+webserver:
+ livenessProbe:
+ initialDelaySeconds: 15
+ timeoutSeconds: 30
+ failureThreshold: 20
+ periodSeconds: 5
+
+ readinessProbe:
+ initialDelaySeconds: 15
+ timeoutSeconds: 30
+ failureThreshold: 20
+ periodSeconds: 5
+
+ # Number of webservers
+ replicas: 1
+
+ # Additional network policies as needed
+ extraNetworkPolicies: []
+
+ resources: {}
+ # limits:
+ # cpu: 100m
+ # memory: 128Mi
+ # requests:
+ # cpu: 100m
+ # memory: 128Mi
+
+ # Create initial user.
+ defaultUser:
+ enabled: true
+ role: Admin
+ username: admin
+ email: [email protected]
+ firstName: admin
+ lastName: user
+ password: admin
+
+ # Mount additional volumes into webserver.
+ extraVolumes: []
+ extraVolumeMounts: []
+
+ # This will be mounted into the Airflow Webserver as
+ # a custom webserver_config.py
Review comment:
```suggestion
# a custom webserver_config.py. You can bake a
# webserver_config.py in to your image instead
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]