Share
Embed
Transcript
43 slides
-
Title Text Body Level One Body Level Two Body Level
Three Body Level Four Body Level Five Is Bootstrapping BOSH simple yet? Dr Nic Williams @drnic CF Summit Basel 2017 -
Dr Nic VP Technology at Engine Yard Discovered BOSH in
2012 ɑ Founded Stark & Wayne Use BOSH nearly every day Ȝ -
Overview Is bootstrapping hard? So what? What is BOSH? ǽ
History of hardness Ɲ In 2017, is it simple now? ǡ + -
You need a plan to deploy, upgrade, scale, and resurrect
28+ vms for CF? -
You need a plan to deploy, upgrade, scale, and resurrect
28+ vms for CF? -
You need a plan to deploy, upgrade, scale, and resurrect
28+ vms for CF? -
You need a plan to deploy, upgrade, scale, and resurrect
28+ vms for CF? -
You need a plan to deploy, upgrade, scale, and resurrect
28+ vms for CF? -
You need a plan to deploy, upgrade, scale, and resurrect
28+ vms for CF? -
You need a plan to deploy, upgrade, scale, and resurrect
28+ vms for CF? -
You need a plan to deploy, upgrade, scale, and resurrect
28+ vms for CF? Trolololo -
You need a plan to deploy, upgrade, scale, and resurrect
28+ vms for CF? -
bosh deploy Director Health Mgr DB + Blobs UAA Credhub
Google / AWS / Azure / vSphere / VirtualBox CPI Using BOSH -
bosh create-env Director Health Mgr DB + Blobs UAA Credhub
CPI Google / AWS / Azure / vSphere / VirtualBox Bootstrapping BOSH local CPI local state local blobs -
Bootstrapping BOSH bosh create-env Director Health Mgr DB + Blobs
UAA Credhub CPI Google / AWS / Azure / vSphere / VirtualBox local CPI local state local blobs Getting started is hard -
Getting started is hard At the time you know the
least bosh create-env ??? -
History of Hardness 2012/13 - bosh micro deploy 2012 -
Chef cookbook ǽ 2014 - vagrant up Ɲ 2014 - Why not Docker? ǡ + -
History of Hardness 2012/13 - bosh micro deploy 2012 -
Chef cookbook ǽ 2014 - vagrant up Ɲ 2014 - Why not Docker? ǡ + 2015 - bosh-init deploy -
2017 bosh-deployment bootstrapping paradise bosh-cli rewrite deprecates bosh1
+ bosh-init jumpbox-deployment manage bastion with bosh-cli Ɲ + -
git clone https://github.com/cloudfoundry/bosh-deployment bosh create-env bosh-deployment/bosh.yml \ -o bosh-deployment/mycloud/cpi.yml …
bosh create-env Director Health Mgr DB + Blobs UAA Credhub CPI local CPI local state local blobs mycloud Common CPI -
git clone https://github.com/cloudfoundry/bosh-deployment bosh create-env bosh-deployment/bosh.yml \ -o bosh-deployment/mycloud/cpi.yml \
--state state.json … bosh create-env Director Health Mgr DB + Blobs UAA Credhub CPI local CPI local state local blobs mycloud Local state -
git clone https://github.com/cloudfoundry/bosh-deployment bosh create-env bosh-deployment/bosh.yml \ -o bosh-deployment/mycloud/cpi.yml \
--state state.json \ --vars-store creds.yml \ -v var1=value1 … bosh create-env Director Health Mgr DB + Blobs UAA Credhub CPI local CPI local state local blobs mycloud Local credentials -
bosh or bosh-lite bosh-lite cloud CPI + container CPI normal
bosh create-env same CPI to create-env + deploy -
bosh create-env Director Health Mgr DB + Blobs UAA Credhub
deploy CPI Google / AWS / Azure / vSphere / VirtualBox local CPI runc/grootfs/docker bosh-lite 2017 -
git clone https://github.com/cloudfoundry/bosh-deployment bosh create-env bosh-deployment/bosh.yml \ -o bosh-deployment/mycloud/cpi.yml \
-o bosh-deployment/bosh-lite.yml \ -o bosh-deployment/bosh-lite-runc.yml … bosh create-env Director Health Mgr DB + Blobs UAA Credhub deploy CPI create-env CPI mycloud runc/grootfs/docker bosh-lite 2017 -
bosh create-env bosh-deployment/bosh.yml \ --state vbox/state.json \ -o bosh-deployment/virtualbox/cpi.yml \
-o bosh-deployment/virtualbox/outbound-network.yml \ -o bosh-deployment/bosh-lite.yml \ -o bosh-deployment/bosh-lite-runc.yml \ --vars-store vbox/creds.yml \ -o bosh-deployment/jumpbox-user.yml \ -v director_name="Bosh Lite Director" \ -v internal_ip=192.168.50.6 \ -v internal_gw=192.168.50.1 \ -v internal_cidr=192.168.50.0/24 \ -v outbound_network_name=NatNetwork Create BOSH env -
bosh create-env bosh-deployment/bosh.yml \ --state vbox/state.json \ -o bosh-deployment/virtualbox/cpi.yml \
-o bosh-deployment/virtualbox/outbound-network.yml \ -o bosh-deployment/bosh-lite.yml \ -o bosh-deployment/bosh-lite-runc.yml \ --vars-store vbox/creds.yml \ -o bosh-deployment/jumpbox-user.yml \ -v director_name="Bosh Lite Director" \ -v internal_ip=192.168.50.6 \ -v internal_gw=192.168.50.1 \ -v internal_cidr=192.168.50.0/24 \ -v outbound_network_name=NatNetwork Update BOSH env -
bosh delete-env bosh-deployment/bosh.yml \ --state vbox/state.json \ -o bosh-deployment/virtualbox/cpi.yml \
-o bosh-deployment/virtualbox/outbound-network.yml \ -o bosh-deployment/bosh-lite.yml \ -o bosh-deployment/bosh-lite-runc.yml \ --vars-store vbox/creds.yml \ -o bosh-deployment/jumpbox-user.yml \ -v director_name="Bosh Lite Director" \ -v internal_ip=192.168.50.6 \ -v internal_gw=192.168.50.1 \ -v internal_cidr=192.168.50.0/24 \ -v outbound_network_name=NatNetwork Delete BOSH env -
bosh create-env bosh-deployment/bosh.yml \ --state vbox/state.json \ -o bosh-deployment/virtualbox/cpi.yml \
-o bosh-deployment/virtualbox/outbound-network.yml \ -o bosh-deployment/bosh-lite.yml \ -o bosh-deployment/bosh-lite-runc.yml \ --vars-store vbox/creds.yml \ -o bosh-deployment/jumpbox-user.yml \ -o bosh-deployment/uaa.yml \ -o bosh-deployment/credhub.yml Add UAA + Credhub + Jumpbox -
git clone https://github.com/starkandwayne/bucc cd bucc bucc up --lite source <(bucc
env) # setup client CLIs bucc alias-env bucc routes bucc uaac bucc credhub bucc fly bucc down -
bosh create-env bosh-deployment/bosh.yml \ --state vbox/state.json \ --vars-store creds.yml \
-o bosh-deployment/gcp/cpi.yml \ -o bosh-deployment/jumpbox-user.yml \ -o bosh-deployment/uaa.yml \ -o bosh-deployment/credhub.yml \ --vars-file mycloud-vars.yml This is actually simple -
BOSH is easy bosh deploy cf-deployment.yml -v system_domain=some-domain.com Deploying
is easy + Upgrading is easy Ɲ bosh deploy cf-deployment.yml -v system_domain=some-domain.com Scaling is easy ǡ bosh deploy cf-deployment.yml -v system_domain=some-domain.com -o scale-changes.yml -
ǡ Scaling is easy BOSH is easy bosh deploy
cf-deployment.yml -v system_domain=some-domain.com -o scale-changes.yml # -o scale-changes.yml - type: replace path: /instance_groups/name=api/instances value: 4 -
# -o scale-changes.yml - type: replace path: /instance_groups/name=api/instances value: 4
ǡ Changes are easy BOSH is easy # cf-deployment.yml -o scale-changes.yml instance_groups: - name: api instances: 2 -> 4