-
Notifications
You must be signed in to change notification settings - Fork 143
/
Copy pathredis-deployment.yaml
45 lines (45 loc) · 1.02 KB
/
redis-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: op-scim-redis
spec:
selector:
matchLabels:
app: op-scim-redis
replicas: 1
template:
metadata:
labels:
app: op-scim-redis
spec:
securityContext:
runAsNonRoot: true
runAsUser: 999
runAsGroup: 999
fsGroup: 999
containers:
- name: op-scim-redis
image: redis:latest
ports:
- containerPort: 6379
name: redis
volumeMounts:
- name: redis-config
mountPath: /home/redis/config
- name: redis-data
mountPath: /data
command:
- redis-server
- /home/redis/config/redis.conf
resources:
requests:
cpu: 125m
memory: 512M
limits:
memory: 512M
volumes:
- name: redis-config
configMap:
name: op-redis-configmap
- name: redis-data
emptyDir: {}