Skip to content

Latest commit

 

History

History
78 lines (72 loc) · 2.72 KB

File metadata and controls

78 lines (72 loc) · 2.72 KB

BOSH-Learn

These instructions are a mixture of two tutorials - Deploy BOSH on Google Cloud Platform and A Guide to Using BOSH.

The reason for combining the two guides:

  1. I wanted my BOSH instance in the Cloud rather than hosted locally on Virtualbox
  2. I wanted to test my BOSH instance with a simple application rather than an expensive Cloud Foundry deployment
  3. 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.

Step by step guide

Deploy a BOSH Environment

  1. Follow the instructions as described here up to the 'Deploy other software' section.

Note 1:

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

Note 2:

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

Deploy a simple application using BOSH

  1. 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
    
  2. Clone this repository:
    git clone https://github.com/djfill/bosh-learn.git
    cd bosh-learn
    
  3. Upload the Cloud Config:
    bosh2 -e micro-google update-cloud-config cloud-config.yml
    
    a. View the Cloud Config:
    bosh2 -e micro-google cc
    
  4. Upload the Stemcell:
    bosh2 -e micro-google upload-stemcell https://s3.amazonaws.com/bosh-core-stemcells/google/bosh-stemcell-3445.11-google-kvm-centos-7-go_agent.tgz
    
    a. View the stemcells:
    bosh2 -e micro-google stemcells
    
  5. Create a Release:
    bosh2 -e micro-google create-release
    
  6. Upload the Release:
    bosh2 -e micro-google upload-release
    
    a. View the Release:
    bosh2 -e micro-google releases
    
  7. Deploy:
    bosh2 -e micro-google -d learn-bosh deploy manifest.yml
    
    a. View the Deployments:
    bosh2 -e micro-google ds
    
  8. View the instances:
    bosh2 -e micro-google -d learn-bosh instances