-
Notifications
You must be signed in to change notification settings - Fork 0
/
airflow-scheduler.yml
69 lines (67 loc) · 1.66 KB
/
airflow-scheduler.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apiVersion: apps/v1
kind: Deployment
metadata:
name: airflow-scheduler
labels:
app: airflow-k8s
spec:
selector:
matchLabels:
app: airflow-scheduler
replicas: 1
template:
metadata:
labels:
app: airflow-scheduler
spec:
containers:
- name: airflow-scheduler
image: puckel/docker-airflow:1.10.9
args: ["scheduler"]
envFrom:
- configMapRef:
name: airflow-envvars-configmap
resources:
limits:
memory: "512Mi"
volumeMounts:
- name: airflow-req-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: airflow-req-configmap
configMap:
name: airflow-req-configmap
- name: dags-host-volume
hostPath:
path: /d/Projects/04_Short/AIRFLOW_SCRIPTS
type: Directory
- name: logs-persistent-storage
persistentVolumeClaim:
claimName: airflow-logs-pvc
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pods-permissions
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch", "create", "delete"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pods-permissions
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: ClusterRole
name: pods-permissions
apiGroup: rbac.authorization.k8s.io