Skip to content
Snippets Groups Projects
redis-sentinel-controller.yaml 464 B
Newer Older
  • Learn to ignore specific revisions
  • Steven Dake's avatar
    Steven Dake committed
    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