-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenketo-redis-cache-deployment.yaml
47 lines (47 loc) · 1.22 KB
/
enketo-redis-cache-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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.fynarfin.service: enketo-redis-cache
name: enketo-redis-cache
spec:
replicas: 1
selector:
matchLabels:
io.fynarfin.service: enketo-redis-cache
strategy:
type: Recreate
template:
metadata:
labels:
io.fynarfin.service: enketo-redis-cache
spec:
containers:
- args:
- redis-server
- /usr/local/etc/redis/redis.conf
image: redis:5
name: enketo-redis-cache
ports:
- containerPort: 6380
resources:
requests:
memory: "128Mi"
cpu: "256m"
limits:
memory: "128Mi"
cpu: "256m"
volumeMounts:
- mountPath: /usr/local/etc/redis/
name: enketo-redis-cache-configmap
- mountPath: /data
name: enketo-redis-cache
restartPolicy: Always
volumes:
- name: enketo-redis-cache
persistentVolumeClaim:
claimName: enketo-redis-cache
- name: enketo-redis-cache-configmap
configMap:
name: enketo-redis-cache-configmap
status: {}