Giter VIP home page Giter VIP logo

redis-sentinel-watcher's Introduction

Redis Sentinel Watcher

This package contains a very simple dockerfile plus python script intended to be run as a sidecar along with a container running redis-sentinel that can detect when redis-sentinels go away. This is primarily aimed at being used with the redis-ha chart.

Building and Running

Run script:

./build.sh

Builds and pushes an image named redis-sentinel-watcher:<version> where <version> is the contents of the file version.txt. Note

Then consume as a sidecar container along with any redis-sentinel container. For example, in a redis sentinel deployment:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: brazen-ladybug-redis-ha-sentinel
spec:
  replicas: 3
  template:
    metadata:
      labels:
        name: redis-sentinel
        redis-sentinel: "true"
        role: sentinel
        app: redis-ha
        heritage: "Tiller"
        release: "brazen-ladybug"
        chart: redis-ha-1.0.0
    spec:
      containers:
      - name: sentinel
        image: gcr.io/your_project/smileisak-redis-fork:4.0.2
        resources:
          limits:
            memory: 200Mi
          requests:
            cpu: 100m
            memory: 200Mi
        env:
          - name: SENTINEL
            value: "true"
        ports:
          - containerPort: 26379
      - name: redis-sentinel-watcher
        image: gcr.io/your_project/redis-sentinel-watcher:0.1 
        env:
          - name: WATCH_NAME
            value: redis-sentinel
          - name: WATCH_APP
            value: redis-ha
          - name: WATCH_RELEASE
            value: brazen-ladybug

Note that smileisak-redis-fork:4.0.2 refers to a fork of a docker image used in the original redis-ha chart. It should be built off this commit

redis-sentinel-watcher's People

Contributors

ludwick avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.