To deploy Cloud Foundry Container Runtime (CFCR) on AWS using the Bosh Bootloader (bbl), follow these steps to apply the cfcr-aws patch and deploy the necessary manifests.
1. Initialize the environment with the patch
Create a new environment and copy the patch files into it before running bbl up:
mkdir banana-env && cd banana-env
bbl plan --name banana-env
cp -r bosh-bootloader/plan-patches/cfcr-aws/. .
bbl up
eval "$(bbl print-env)"
2. Prepare the kubo-deployment repository
Clone the kubo-deployment repository and export its path as KD to simplify subsequent commands:
git clone git@github.com:cloudfoundry-incubator/kubo-deployment.git
export KD=$(pwd)/kubo-deployment
3. Upload the required stemcell
Use the version specified in the CFCR manifest to upload the correct AWS Xen HVM Ubuntu stemcell:
bosh upload-stemcell https://bosh.io/d/stemcells/bosh-aws-xen-hvm-ubuntu-xenial-go_agent?v=$(bosh int ${KD}/manifests/cfcr.yml --path=/stemcells/0/version)
4. Apply custom cloud configuration
Update the cloud configuration using the AWS-specific VM extensions manifest:
bosh update-config --name cfcr \\n${KD}/manifests/cloud-config/iaas/aws/use-vm-extensions.yml \\n--var deployment_name=cfcr \\n--type cloud \\n--vars-file <(bbl outputs)
5. Deploy the CFCR manifest
Deploy the CFCR deployment using the required ops files and variables:
bosh deploy -d cfcr ${KD}/manifests/cfcr.yml \\n-o ${KD}/manifests/ops-files/iaas/aws/cloud-provider.yml \\n-o ${KD}/manifests/ops-files/use-vm-extensions.yml \\n-o ${KD}/manifests/ops-files/add-hostname-to-master-certificate.yml \\n-o ${KD}/manifests/ops-files/iaas/aws/lb.yml \\n--var deployment_name=cfcr \\n-l <(bbl outputs)