Skip to content

Instantly share code, notes, and snippets.

@eh-am
Last active March 21, 2018 13:29
Show Gist options
  • Select an option

  • Save eh-am/ffbc7cdcf161a92fd8bef9281f441fb8 to your computer and use it in GitHub Desktop.

Select an option

Save eh-am/ffbc7cdcf161a92fd8bef9281f441fb8 to your computer and use it in GitHub Desktop.
Brigade - things i've learned

https://github.com/lukepatrick/brigade-bitbucket-gateway run with --set rbac.enabled=true

Installing brigade in the cluster

helm install -n brigade brigade/brigade --set rbac.enabled=true

Install a project

Given the follow yaml named project.yaml

project: "eh-am/brigade-test"
repository: "github.com/eh-am/brigade-test"
cloneURL: "https://github.com/eh-am/brigade-test.git"
# Used by GitHub to compute hooks.
# MAKE SURE YOU CHANGE THIS. It's basically a password.
sharedSecret: "MySuperSecret"
# Use this to have Brigade update your project about the build.
# You probably want this if you want pull requests or commits to show
# the build status.
github:
  token: "figure your own out"

project name has to be the same as in your git repo

run helm install brigade/brigade-project --name brigade-test -f project.yaml --debug > debug.yaml

Install the cli

You need to have a go environment

https://github.com/Azure/brigade/tree/master/brig See the "Building Brig" section

They update the cli all the time so remember to update your version.

Install the dashboard

Clone kashti repository Then install it helm install -n kashti ./charts/kashti

Running the dashboard

Once you have both the dashboard and the brigade server running, do:

brig proxy or brig proxy --verbose --kashtiNamespace=brigade --namespace=brigade if you are running in a different namespace

Tips

  • workers got stuck, so you want to delete all of them: kubectl get pods --no-headers=true | grep 'brigade-worker' | sed -r 's/(\S+)\s+(\S+).*/kubectl delete pod \1/e'

  • rbac gets messed up if you don't deploy brigade in default namespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment