k3s/examples/redis/redis-sentinel-controller.yaml

26 lines
548 B
YAML
Raw Normal View History

2015-01-22 21:27:37 +00:00
id: redis-sentinel
kind: ReplicationController
apiVersion: v1beta1
desiredState:
replicas: 1
replicaSelector:
redis-sentinel: "true"
podTemplate:
desiredState:
manifest:
version: v1beta1
id: redis-slave
containers:
- name: sentinel
2015-01-22 22:25:10 +00:00
image: kubernetes/redis:v1
2015-01-22 21:27:37 +00:00
ports:
- containerPort: 26379
2015-01-22 21:27:37 +00:00
env:
- key: SENTINEL
value: "true"
labels:
name: redis-sentinel
role: sentinel
redis-sentinel: "true"