forked from spotahome/redis-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpmem.yaml
40 lines (40 loc) · 1.03 KB
/
pmem.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
# Deployment that uses persistent volumes provided by pmem-CSI. To use this example you need:
# - Proper setup of the persistent memory container storage interface driver from https://github.com/intel/pmem-CSI
apiVersion: databases.spotahome.com/v1
kind: RedisFailover
metadata:
name: redisfailover-pmem
spec:
sentinel:
replicas: 3
command:
- "redis-server"
- "/redis/sentinel.conf"
- "--sentinel"
- "--protected-mode"
- "no"
redis:
securityContext:
runAsNonRoot: False
replicas: 3
image: pmem/redis
version: latest
command:
- "redis-server"
- "/redis/redis.conf"
- "--pmdir"
- "/data"
- "100Mb"
- "--protected-mode"
- "no"
storage:
persistentVolumeClaim:
metadata:
name: redisfailover-pmem-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
storageClassName: pmem-csi-sc-ext4 # From https://github.com/intel/pmem-CSI