-
Notifications
You must be signed in to change notification settings - Fork 0
/
redis.yaml
49 lines (48 loc) · 931 Bytes
/
redis.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
mediacms-service: mediaredis
name: mediaredis
spec:
replicas: 1
selector:
matchLabels:
mediacms-service: mediaredis
template:
metadata:
labels:
mediacms-service: mediaredis
user: mediacms
spec:
containers:
- image: redis:alpine
livenessProbe:
exec:
command:
- redis-cli
- ping
failureThreshold: 3
periodSeconds: 30
timeoutSeconds: 10
name: mediaredis
ports:
- containerPort: 6379
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
labels:
mediacms-service: mediaredis
user: mediacms
name: mediaredis
spec:
ports:
- name: "6379"
port: 6379
targetPort: 6379
selector:
mediacms-service: mediaredis
status:
loadBalancer: {}