b725bd09dd
TrivialFix Change-Id: Ifb8f19afa1514488bd288670d08b96f84982a4e1
34 lines
642 B
YAML
34 lines
642 B
YAML
apiVersion: v1beta3
|
|
kind: Pod
|
|
metadata:
|
|
labels:
|
|
name: redis
|
|
redis-sentinel: "true"
|
|
role: master
|
|
name: redis-master
|
|
spec:
|
|
containers:
|
|
- name: master
|
|
image: kubernetes/redis:v1
|
|
env:
|
|
- name: MASTER
|
|
value: "true"
|
|
ports:
|
|
- containerPort: 6379
|
|
resources:
|
|
limits:
|
|
cpu: "1"
|
|
volumeMounts:
|
|
- mountPath: /redis-master-data
|
|
name: data
|
|
- name: sentinel
|
|
image: kubernetes/redis:v1
|
|
env:
|
|
- name: SENTINEL
|
|
value: "true"
|
|
ports:
|
|
- containerPort: 26379
|
|
volumes:
|
|
- name: data
|
|
emptyDir: {}
|