forked from wormhole-foundation/wormhole
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathredis.yaml
44 lines (44 loc) · 777 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
---
apiVersion: v1
kind: Service
metadata:
name: redis
labels:
app: redis
spec:
clusterIP: None
selector:
app: redis
ports:
- port: 6379
name: redis
protocol: TCP
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: redis
spec:
selector:
matchLabels:
app: redis
serviceName: redis
template:
metadata:
labels:
app: redis
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 0
containers:
- name: redis
image: redis
readinessProbe:
tcpSocket:
port: 6379
periodSeconds: 1
failureThreshold: 300
ports:
- containerPort: 6379
name: redis
protocol: TCP