Skip to content

Latest commit

 

History

History
67 lines (51 loc) · 2.37 KB

README.md

File metadata and controls

67 lines (51 loc) · 2.37 KB

Cloud Foundry Redis Service Broker

This repository contains a BOSH release for a Cloud Foundry Redis service broker.

git clone https://github.com/pivotal-cf/cf-redis-release ~/workspace/cf-redis-release
cd ~/workspace/cf-redis-release
git submodule update --init --recursive

Deployment dependencies

  1. bosh2 CLI (you may use the old CLI but instructions will use the new one)
  2. direnv (or set envs yourself)
  3. a bosh director
  4. a cloud foundry deployment
  5. fill out the following envs of the .envrc.template file and save as .envrc:
    • BOSH_ENVIRONMENT
    • BOSH_CA_CERT
    • BOSH_CLIENT
    • BOSH_CLIENT_SECRET
    • BOSH_DEPLOYMENT
  6. direnv allow
  7. routing release 0.157.0 (bosh upload-release http://bosh.io/d/github.com/cloudfoundry-incubator/cf-routing-release?v=0.157.0)
  8. syslog-migration release 8 (bosh upload-release https://github.com/pivotal-cf/syslog-migration-release/releases/download/v8/syslog-migration-8.tgz)

Deployment

Populate a vars file (using manifest/vars-lite.yml as a template), save it to secrets/vars.yml. You will need values from both your cloud-config and secrets from your cf-deployment.

To deploy:

bosh upload-stemcell https://s3.amazonaws.com/bosh-core-stemcells/warden/bosh-stemcell-3363.27-warden-boshlite-ubuntu-trusty-go_agent.tgz
bosh create-release
bosh upload-release
bosh deploy --vars-file secrets/vars.yml manifest/deployment.yml

# or if you are deploying on GCP:
#bosh deploy --vars-file secrets/vars.yml manifest/deployment.yml --ops-file manifest/ops-public-ip-gcp.yml
# this ops-file adds a GCP specific vm_extension: `public_ip`, which is required to allow
# instances to send outgoing public traffic. e.g. for the broker_registrar to register with the CF.

Network Configuration

The following ports and ranges are used in this service:

  • broker vm, port 12350: access to the broker from the cloud controllers
  • broker vm, ports 32768-61000: on the service broker from the Diego Cell and Diego Brain network(s). This is only required for the shared service plan
  • dedicated node, port 6379: access to all dedicated nodes from the Diego Cell and Diego Brain network(s)

Testing

  1. bundle install
  2. bundle exec rspec spec

Related Documentation