Giter Site home page Giter Site logo

ocp-redis-cluster's Introduction

Redis Cluster Integration for OpenShift Container Platform

The objetive for this repository is to deploy a Redis Cluster on top of Openshift Container Platform.

  1. Create the redis-cluster namespace on your Cluster

     # oc new-project redis-cluster
    
  2. Import the template from source

     # oc create -f https://raw.githubusercontent.com/makentenza/ocp-redis-cluster/master/kube/redis-cluster-ephimeral.yaml
    
  3. Create the new application from the imported template

     # oc new-app redis-cluster-ephemeral
    

    --> Deploying template "openshift/redis-cluster-ephemeral" to project redis-cluster

       redis-cluster-ephemeral
       ---------
       Redis 3 Cluster Node Ephemeral
    
       Redis 3 Cluster Node Ephemeral
    

    --> Creating resources

       serviceaccount "redis" created
       imagestream "redis-cluster-node" created
       service "redis-cluster-service" created
       service "redis-cluster-node01" created
       service "redis-cluster-node02" created
       service "redis-cluster-node03" created
       buildconfig "redis-cluster" created
       deploymentconfig "redis-cluster-node01" created
       deploymentconfig "redis-cluster-node02" created
       deploymentconfig "redis-cluster-node03" created
    

    --> Success

  4. Add the redis service account to anyuid Security Context Constraint so redis user could start processes inside de image

     # oc adm policy add-scc-to-user anyuid system:serviceaccount:redis-cluster:redis
    

Following these instructions a 3 Redis Cluster Node will automatically be created, properly shard Nodes so data is automatically sharded across multiple Redis nodes. In order to operate the Cluster (Adding Nodes, Removing Nodes, Resharding the Cluster) follow the Offical Documentation

ocp-redis-cluster's People

Contributors

makentenza avatar wangyadongd avatar

Watchers

 avatar  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.