-
Notifications
You must be signed in to change notification settings - Fork 0
/
4-1-airflow-secret.yml
31 lines (31 loc) · 1.57 KB
/
4-1-airflow-secret.yml
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
apiVersion: v1
kind: Secret
metadata:
name: airflow
namespace: airflow
stringData:
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgres://postgres:[email protected]/postgres
AIRFLOW__CORE__LOAD_EXAMPLES: "false"
AIRFLOW__CORE__LOAD_DEFAULT_CONNECTIONS: "false"
AIRFLOW__CORE__EXECUTOR: CeleryExecutor
# https://airflow.apache.org/docs/stable/configurations-ref.html#fernet-key
# # generate fernet key
# > pip install cryptography
# > python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
AIRFLOW__CORE__FERNET_KEY: ackq2lCJwKZo9tHjlz34G9AZfbMsq10oR2Di3-CWDn8=
AIRFLOW__CELERY__BROKER_URL: amqp://airflow:[email protected]:5672/airflow
AIRFLOW__CELERY__RESULT_BACKEND: db+postgres://postgres:[email protected]/postgres
# https://airflow.apache.org/docs/stable/configurations-ref.html#worker-autoscale
AIRFLOW__CELERY__WORKER_AUTOSCALE: 8,4
AIRFLOW__CELERY__FLOWER_BASIC_AUTH: flower:flower
AIRFLOW__WEBSERVER__WORKERS: "4"
# https://airflow.apache.org/docs/stable/configurations-ref.html#worker-class
AIRFLOW__WEBSERVER__WORKER_CLASS: gevent
# https://airflow.apache.org/docs/stable/configurations-ref.html#rbac
AIRFLOW__WEBSERVER__RBAC: "true"
AIRFLOW__WEBSERVER__AUTHENTICATE: "true"
AIRFLOW__WEBSERVER__AUTH_BACKEND: airflow.contrib.auth.backends.password_auth
# https://airflow.apache.org/docs/stable/configurations-ref.html#secret-key
AIRFLOW__WEBSERVER__SECRET_KEY: temporary_key
AIRFLOW__SCHEDULER__MAX_THREADS: "1"
GIT_REPO: https://github.com/WatchDG/airflow-dags.git