Skip to content

Instantly share code, notes, and snippets.

View bgandon's full-sized avatar

Benjamin Gandon bgandon

View GitHub Profile
@bgandon
bgandon / bosh-cheatsheet.md
Last active September 25, 2023 15:17 — forked from allomov-altoros/bosh-cheatsheet.md
BOSH CLI cheatsheet

BOSH command line interface cheatsheet

Introduction

Bosh is a powerful tool to install and manage your Cloud Virtual Machine workloads (VMs), referred to as “deployments”. You can find docs on //bosh.io/docs. Consider using bosh create-env tool to install to a Cloud of your choice a new Bosh Director.

Bosh uses a CPI (Cloud Provider Interface) to talk to the underlying IaaS/Cloud and manage Cloud workloads, just like a computer uses a driver to talk to a printer. CPIs are very similar to the Infrastructure Cloud Providers later implemented in the ClusterAPI technology, but Bosh abstractions apply to any scope of workloads where ClusterAPI is very restrictive, and Bosh concepts map the problem space better than ClusterAPI, reaching better efficiency in the convergence loop towards the expected (healthy) state of workloads.

Director, Stemcell, Release, Deployment, Instance, are words that have a very specific meaning in Bosh context, so we capitalize them here.

@bgandon
bgandon / consul_z1-0
Created April 14, 2016 14:48
Flapping membership in consul cluster of cf v231
# monit start consul_agent; tail -F /var/vcap/data/sys/log/consul_agent/consul_agent.stdout.log /var/vcap/monit/monit.log
==> /var/vcap/monit/monit.log <==
[UTC Apr 14 13:55:08] info : 'consul_agent' start: /var/vcap/jobs/consul_agent/bin/agent_ctl
[UTC Apr 14 13:55:42] info : stop service 'consul_agent' on user request
[UTC Apr 14 13:55:42] info : monit daemon at 101 awakened
[UTC Apr 14 13:56:08] error : 'consul_agent' failed to start
[UTC Apr 14 13:56:08] info : Awakened by User defined signal 1
[UTC Apr 14 13:56:08] info : 'consul_agent' stop action done
[UTC Apr 14 14:35:25] info : start service 'consul_agent' on user request
@bgandon
bgandon / consul_z1-0
Created April 14, 2016 14:32
Sync failures with 3-nodes consul cluster in cf v231
==> /var/vcap/monit/monit.log <==
[UTC Apr 14 13:49:24] info : 'consul_agent' trying to restart
[UTC Apr 14 13:49:24] info : 'consul_agent' start: /var/vcap/jobs/consul_agent/bin/agent_ctl
[UTC Apr 14 13:49:56] info : stop service 'consul_agent' on user request
[UTC Apr 14 13:49:56] info : monit daemon at 101 awakened
[UTC Apr 14 13:50:24] error : 'consul_agent' failed to start
[UTC Apr 14 13:50:24] info : Awakened by User defined signal 1
[UTC Apr 14 13:50:24] info : 'consul_agent' stop action done
[UTC Apr 14 13:53:57] info : start service 'consul_agent' on user request
[UTC Apr 14 13:53:57] info : monit daemon at 101 awakened
@bgandon
bgandon / concourse-example-tasks.md
Last active May 17, 2018 21:04 — forked from drnic/concourse-example-tasks.md
A simple concourse example task - fork and try anything

Concourse Tutorial - Example Tasks

This gist includes some https://concourse.ci job tasks

  • hello-world.yml - displays "hello world"
  • display-other-task.yml - uses this task as a resource itself and displays the hello-world.yml YAML; assumes that the gist is available in the concourse pipeline as resource-gist.
  • display-other-task-renamed-resource-input.yml - is like the task above, but assumes the resource is now named gist rather than resource-gist