-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathredis-deploy.yaml
50 lines (50 loc) · 1.33 KB
/
redis-deploy.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
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: redis-airflow
# namespace: airflow
# labels:
# app: redis-airflow
# spec:
# replicas: 1
# selector:
# matchLabels:
# app: redis-airflow
# template:
# metadata:
# labels:
# app: redis-airflow
# spec:
# restartPolicy: Always
# terminationGracePeriodSeconds: 30
# dnsPolicy: ClusterFirst
# automountServiceAccountToken: false
# containers:
# - name: redis-airflow
# image: redis:6.2
# imagePullPolicy: IfNotPresent
# resources:
# # 2.332MiB / 2.931GiB without data
# requests:
# cpu: 100m
# memory: 1024Mi
# limits:
# # need to test
# cpu: 256m
# memory: 4096Mi
# command: ["redis-server"]
# args: ["--requirepass", "${REDIS_PASSWORD}"]
# securityContext:
# allowPrivilegeEscalation: false
# # readOnlyRootFilesystem: true
# privileged: false
# ports:
# - containerPort: 6379
# protocol: TCP
# env:
# - name: REDIS_PASSWORD
# valueFrom:
# secretKeyRef:
# name: airflow-secrets
# key: REDIS_PASSWORD
#