-
Notifications
You must be signed in to change notification settings - Fork 0
/
flower.yaml
91 lines (87 loc) · 2.4 KB
/
flower.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
kind: Deployment
apiVersion: apps/v1
metadata:
name: airflow-flower
namespace: airflow-v2
spec:
replicas: 1
selector:
matchLabels:
tier: airflow
component: flower
release: v2.6.0
template:
metadata:
labels:
tier: airflow
component: flower
release: v2.6.0
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 10
containers:
- name: flower
image: registry.akulaku.com/data/airflow:v2.6.0-python3.10
imagePullPolicy: IfNotPresent
args: ["airflow", "celery", "flower"]
env:
- name: AIRFLOW__CORE__FERNET_KEY
value: cwmLHK76Sp9XclhLzHwCNXNiAr04OSMKQ--6WXRjmss=
- name: AIRFLOW__CORE__EXECUTOR
value: CeleryExecutor
- name: AIRFLOW__DATABASE__SQL_ALCHEMY_CONN
valueFrom:
secretKeyRef:
name: airflow-secrets
key: sql_alchemy_conn
- name: AIRFLOW__CELERY__BROKER_URL
valueFrom:
secretKeyRef:
name: airflow-secrets
key: broker_url
- name: AIRFLOW__CELERY__RESULT_BACKEND
valueFrom:
secretKeyRef:
name: airflow-secrets
key: result_backend
volumeMounts:
- name: logs-pv
mountPath: "/opt/airflow/logs"
- name: dags-pv
mountPath: "/opt/airflow/dags"
- name: plugins-pv
mountPath: "/opt/airflow/plugins"
- name: config
mountPath: "/opt/airflow/airflow.cfg"
subPath: airflow.cfg
volumes:
- name: config
configMap:
name: airflow-configmap
- name: logs-pv
persistentVolumeClaim:
claimName: airflow-logs-pvc
- name: dags-pv
persistentVolumeClaim:
claimName: airflow-dags-pvc
- name: plugins-pv
persistentVolumeClaim:
claimName: airflow-plugins-pvc
---
apiVersion: v1
kind: Service
metadata:
name: airflow-flower-svc
spec:
type: ClusterIP
ports:
- name: airflow-flower
port: 5555
targetPort: 5555
protocol: TCP
selector:
tier: airflow
component: flower
release: v2.6.0