Giter Club home page Giter Club logo

ads-infra-redis's Introduction

Redis+Kontrol pod

Overview

This project is a Docker image packaging Redis 3.0.7 together with Kontrol. It is meant to be included in a Kubernetes pod.

This container can be included in a pod to provide a local cache and mounted against a persistent volume as well.

Lifecycle

Redis will be started in stand-alone mode. The initial state will render the various configuration files including the telegraf one.

Additional work down the road will enable periodic snapshots to S3 and the formation of a redis cluster across multiple containers.

Configuring redis

A default proxy,cfg configuration file is provided with the image. This can however be overriden via the redis.unity3d.com/config annotation. This payload is then used vertabim (e.g make sure it is complete and valid). For instance:

annotations:
  redis.unity3d.com/config: |
      daemonize no
      port 6379
      dir /data

Please note redis must be started in foreground mode (e.g daemonize disabled). The data directory should be set to /data. If not, make sure the directory exists as redis won't create it and fail starting if it does not. The port can be set to whatever (but update the YAML manifest in that case).

Building the image

Pick a distro and build from the top-level directory. For instance:

$ docker build -f alpine-3.5/Dockerfile .

Manifest

Simply use this pod in a deployment and assign it to an array with external access using a node-port service to clamp onto the desired port. For instance:

apiVersion: v1
kind: Pod
metadata:
  name: redis
  labels:
    app: redis
    role: store
    tier: cache
  annotations:
    kontrol.unity3d.com/opentsdb: kairosdb.us-east-1.applifier.info
    redis.unity3d.com/config: |
      daemonize no
      port 6379
      dir /data
spec:
  containers:
    - image: registry2.applifier.info:5005/ads-infra-redis-alpine-3.5
      name: cache
      imagePullPolicy: Always
      ports:
      - containerPort: 6379
        protocol: TCP

Support

Contact [email protected] for more information about this project.

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.