This document will walk through deploying a cf-deployment based Cloud Foundry.
- bbl
- A GCP Service Account key as described in README.md
- BBL up. e.g.
bbl up --gcp-zone us-east1-b --gcp-region us-east1 --gcp-service-account-key service-account.key.json --gcp-project-id my-gcp-project-id --iaas gcp
- This guide will assume the Bosh v2 CLI is installed, but bosh v1 CLI could work, with some minor changes.
export BOSH_USER=`bbl director-username`
export BOSH_PASSWORD=`bbl director-password`
export BOSH_CA_CERT=`bbl director-ca-cert`
export BOSH_ENVIRONMENT=`bbl director-address`
bbl create-lbs --type cf --key path/to/cf.example.com.key --cert path/to/cf.example.com.crt
Scale instance types, disks and instance count based on your needs. Other sizes are available, see bosh cloud-config
.
- Start with a clone of the CF Deployment repo.
- Create a vars file, cf-deployment-vars.yml:
system_domain: cf.example.com
- Check that the rest of the required credentials can autogenerate:
bosh -n interpolate --vars-store cf-deployment-vars.yml -o opsfiles/gcp.yml -o opsfiles/disable-router-tls-termination.yml --var-errs cf-deployment.yml
- Download and upload latest Google stemcell
bosh upload-stemcell ~/Downloads/light-bosh-stemcell-XXXX.X-google-kvm-ubuntu-trusty-go_agent.tgz
bosh -d cf deploy --vars-store cf-deployment-vars.yml -o opsfiles/gcp.yml -o opsfiles/disable-router-tls-termination.yml cf-deployment.yml