aboutsummaryrefslogtreecommitdiff
path: root/contrib/demos/magnum/redis-kube/redis-sentinel-controller.yaml
blob: d8ae236e60190c29f9b412b8b339ecc662b1bcd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
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