aboutsummaryrefslogtreecommitdiff
path: root/contrib/demos/magnum/redis-kube/redis-sentinel-controller.yaml
blob: 157b09e8a4a3c9f0c00ba261a2fa4f954852cf93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
apiVersion: v1beta3
kind: ReplicationController
metadata:
  name: redis-sentinel
spec:
  replicas:  2
  selector:
    redis-sentinel: "true"
  template:
    metadata:
      labels:
        name: redis-sentinel
        redis-sentinel: "true"
        role: sentinel
    spec:
      containers:
      - name: sentinel
        image: kubernetes/redis:v1
        env:
          - name: SENTINEL
            value: "true"
        ports:
          - containerPort: 26379