Coder Social home page Coder Social logo

freakin / redis-boshrelease Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry-community/redis-boshrelease

0.0 1.0 0.0 377 KB

One of the fastest ways to get redis running on any infrastructure is to deploy this bosh release

License: Apache License 2.0

Shell 47.71% HTML 49.98% Smarty 2.31%

redis-boshrelease's Introduction

BOSH release for Redis

One of the fastest ways to get redis running on any infrastructure is to deploy this bosh release. It can also be deployed to Kubernetes using Quarks/cf-operator and a Helm chart.

Deploy Redis cluster with pre-compiled releases to a BOSH director:

bosh -d redis deploy \
    <(curl -L https://raw.githubusercontent.com/cloudfoundry-community/redis-boshrelease/master/manifests/redis.yml)

Deploy Redis cluster with pre-compiled Docker images to Kubernetes that is running Quarks (cf-operator) in the same namespace:

helm repo add starkandwayne https://helm.starkandwayne.com
helm repo update
helm upgrade --install --wait --namespace scf \
    redis-deployment \
    starkandwayne/redis

BOSH usage

This repository includes base manifests and operator files. They can be used for initial deployments and subsequently used for updating your deployments.

To deploy a 2-node cluster:

export BOSH_ENVIRONMENT=<alias>
export BOSH_DEPLOYMENT=redis

git clone https://github.com/cloudfoundry-community/redis-boshrelease.git
bosh deploy redis-boshrelease/manifests/redis.yml

If your BOSH does not have Credhub/Config Server, then remember --vars-store to allow generation of passwords and certificates.

bosh deploy redis-boshrelease/manifests/redis.yml --vars-store creds.yml

If you have any errors about Instance group 'redis' references an unknown vm type 'default' or similar, there is a helper script to select a vm_type and network from your Cloud Config:

bosh deploy redis-boshrelease/manifests/redis.yml -o <(./manifests/operators/pick-from-cloud-config.sh)

Sentinel

This is not a cluster_enabled redis deployment.

Redis Sentinel provides high availability for Redis. In this bosh release, you can include the redis-sentinel job to manage failover for 2 or more Redis instances in replication mode.

Note: Set "bind_static_ip" to true using the redis-sentinel job.

[...]
  instances: 3
  jobs:
[...]
  - name: redis
    release: redis
  - name: redis-sentinel
    release: redis
  properties:
    bind_static_ip: true
    password: ((redis_password)

Update

When new versions of redis-boshrelease are released the manifests/redis.yml file will be updated. This means you can easily git pull and bosh deploy to upgrade.

export BOSH_ENVIRONMENT=<alias>
export BOSH_DEPLOYMENT=redis
cd redis-boshrelease
git pull
cd -
bosh deploy redis-boshrelease/manifests/redis.yml

Development

To create/upload/deploy local changes to this BOSH release use the create.yml operator:

bosh -d redis deploy manifests/redis.yml -o manifests/operators/create.yml

redis-boshrelease's People

Contributors

7hunderbird avatar bkrannich avatar claudio-benfatto avatar dennisjbell avatar drnic avatar duncwinn avatar factorypreset avatar freakin avatar geofffranks avatar hashneo avatar infra-red avatar jordanbcooper avatar kitsirota avatar kostyasha avatar lnguyen avatar mehtaphysical avatar mkb avatar pmenglund avatar ragzip avatar samuelmarks avatar starkandwayne-bot 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.