forked from cqyisbug/redis-in-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sts-redis-cc.yaml
37 lines (37 loc) · 878 Bytes
/
sts-redis-cc.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
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: sts-redis-cc
spec:
serviceName: "svc-redis-cc"
replicas: 1
template:
metadata:
labels:
name: sts-redis-cc
environment: test
spec:
terminationGracePeriodSeconds: 10
containers:
- name: cntr-redis-cc
image: $YourImage
imagePullPolicy: Always
env:
- name: CLUSTER_CTRL
value: "true"
- name: REDIS_CLUSTER_SLAVE_QUANTUM
value: "1"
- name: LOG_LEVEL
value: "0"
- name: SHOW_HEALTH_DETAIL
value: "true"
- name: API_SERVER_ADDR
value: "172.20.0.12:8080"
- name: REDIS_PORT
value: "6380"
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- containerPort: 6380