-
Notifications
You must be signed in to change notification settings - Fork 13
/
airflow-webserver-deployment.yaml
51 lines (47 loc) · 1.22 KB
/
airflow-webserver-deployment.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
39
40
41
42
43
44
45
46
47
48
49
50
51
apiVersion: apps/v1
kind: Deployment
metadata:
name: airflow-webserver
labels:
app: airflow-k8s
spec:
selector:
matchLabels:
app: airflow-webserver
replicas: 1
template:
metadata:
labels:
app: airflow-webserver
spec:
containers:
- name: airflow-webserver
image: puckel/docker-airflow:1.10.9
envFrom:
- configMapRef:
name: airflow-envvars-configmap
resources:
limits:
memory: "2Gi"
# cpu: "100"
ports:
- containerPort: 8080
volumeMounts:
- name: requirements-configmap
subPath: "requirements.txt"
mountPath: "/requirements.txt"
- name: dags-host-volume
mountPath: /usr/local/airflow/dags
- name: logs-persistent-storage
mountPath: /usr/local/airflow/logs
volumes:
- name: requirements-configmap
configMap:
name: requirements-configmap
- name: dags-host-volume
hostPath:
path: /mnt/airflow/dags
type: Directory
- name: logs-persistent-storage
persistentVolumeClaim:
claimName: airflow-logs-pvc