-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathredis-deploy.yaml
More file actions
43 lines (43 loc) · 862 Bytes
/
redis-deploy.yaml
File metadata and controls
43 lines (43 loc) · 862 Bytes
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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: demoapp-redis
labels:
app: demoapp
component: redis
spec:
replicas: 1
selector:
matchLabels:
app: demoapp
component: redis
strategy:
type: Recreate
template:
metadata:
labels:
app: demoapp
component: redis
spec:
restartPolicy: Always
volumes:
- name: data
persistentVolumeClaim:
claimName: demoapp-redis
containers:
- name: redis
image: redis:4.0.9
livenessProbe:
tcpSocket:
port: 6379
readinessProbe:
tcpSocket:
port: 6379
volumeMounts:
- name: data
mountPath: /data
command:
- redis-server
- --appendonly
- "yes"