These instructions are a mixture of two tutorials - Deploy BOSH on Google Cloud Platform and A Guide to Using BOSH.
- I wanted my BOSH instance in the Cloud rather than hosted locally on Virtualbox
- I wanted to test my BOSH instance with a simple application rather than an expensive Cloud Foundry deployment
- After following Deploy BOSH on Google Cloud Platform, trying to deploy the smaller application described in A Guide to Using BOSH didn't work. This repository contains the BOSH v2 manifest that deploys successfully.
- Follow the instructions as described here up to the 'Deploy other software' section.
I had to make the following change in Step 2 and 3 of 'Deploy Supporting Infrastructure')
hashicorp/terraform:light
to
hashicorp/terraform:0.9.9
In step 2 of the 'Setup' section, use the following region and zone (This avoids limitations in a free trial account):
export region=europe-west2
export zone=europe-west2-a
- Following on from the guide in the previous step, you should already be logged on to the bosh bastion. If not, SSH on to the bosh bastion:
gcloud compute ssh bosh-bastion - Clone this repository:
git clone https://github.com/djfill/bosh-learn.git cd bosh-learn - Upload the Cloud Config:
a. View the Cloud Config:
bosh2 -e micro-google update-cloud-config cloud-config.ymlbosh2 -e micro-google cc - Upload the Stemcell:
a. View the stemcells:
bosh2 -e micro-google upload-stemcell https://s3.amazonaws.com/bosh-core-stemcells/google/bosh-stemcell-3445.11-google-kvm-centos-7-go_agent.tgzbosh2 -e micro-google stemcells - Create a Release:
bosh2 -e micro-google create-release - Upload the Release:
a. View the Release:
bosh2 -e micro-google upload-releasebosh2 -e micro-google releases - Deploy:
a. View the Deployments:
bosh2 -e micro-google -d learn-bosh deploy manifest.ymlbosh2 -e micro-google ds - View the instances:
bosh2 -e micro-google -d learn-bosh instances