-
Notifications
You must be signed in to change notification settings - Fork 1
/
knative_service_template.yaml
38 lines (38 loc) · 1.12 KB
/
knative_service_template.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
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
namespace: airflow
name: __SERVICE_NAME__
annotations:
dag_id: __DAGID__
task_id: __TASKID__
spec:
template:
spec:
containers:
- image: "ghcr.io/jonamuen/airflow-worker:latest"
imagePullPolicy: Always
ports:
- name: http1
containerPort: 50000
env:
- name: AIRFLOW__CORE__EXECUTOR
value: LocalExecutor
- name: AIRFLOW_IS_K8S_EXECUTOR_POD
value: "True"
# Hard Coded Airflow Envs
- name: AIRFLOW__CORE__FERNET_KEY
valueFrom:
secretKeyRef:
name: airflow-fernet-key
key: fernet-key
- name: AIRFLOW__DATABASE__SQL_ALCHEMY_CONN
valueFrom:
secretKeyRef:
name: airflow-airflow-metadata
key: connection
- name: AIRFLOW_CONN_AIRFLOW_DB
valueFrom:
secretKeyRef:
name: airflow-airflow-metadata
key: connection