-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdep-airflow-web.yml
41 lines (39 loc) · 1.04 KB
/
dep-airflow-web.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
32
33
34
35
36
37
38
39
40
41
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: airflow-web
spec:
replicas: 1
template:
metadata:
labels:
airflow: web
spec:
containers:
- name: airflow
image: <your registry>/apache-airflow:1.9
env:
- name: DB_USER
value: <your db user>
- name: DB_PWD
value: <your db password>
- name: DB_HOST
value: <your db host>
- name: DB_PORT
value: "<your db port>"
- name: DB_NAME
value: "<your db name>"
- name: IS_WEB
value: ["yes"|"no"]
- name: DB_TYPE
value: [postgres | mysql]
ports:
- name: airflow-web
containerPort: 8080
volumeMounts:
- mountPath: /home/airflow/vol
name: airflow-dags-vol
volumes:
- name: airflow-dags-vol
persistentVolumeClaim:
claimName: airflow-pvc