Skip to content

Instantly share code, notes, and snippets.

@fedir
Forked from kevtainer/important.md
Last active October 21, 2018 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedir/da8b390e1b0c09ed12d96ee29e67aa95 to your computer and use it in GitHub Desktop.
Save fedir/da8b390e1b0c09ed12d96ee29e67aa95 to your computer and use it in GitHub Desktop.
Opentracing Workshop

Here lives things you'll need to copy/paste, click, etc.

Configure kube

vim ~/.kube/config +26

  user: cluster-admin

vim ~/.kube/config +32

-user:
  username:admin
  password:yourpassword

Initial Cluster Configuration

Gitlab (source)

docker run --rm -it -v "$HOME/.kube:/root/.kube" \
  registry.gitlab.com/opentracing-workshop/build-tools:latest setup-cluster

Gitlab Settings

Gitlab (source)

docker run --rm -it -v "$HOME/.kube:/root/.kube" \
  registry.gitlab.com/opentracing-workshop/build-tools:latest \
  get-gitlab-settings deploy --namespace=spc > gitlab-creds.txt

Spring Petclinic Microservice App

Gitlab (source)

Monitoring Tools Setup Script

docker run --rm -it -v "$HOME/.kube:/root/.kube" \
  registry.gitlab.com/opentracing-workshop/build-tools setup-monitoring

Gitlab (source)

Prometheus Fix

label_values(jvm_memory_used_bytes{application="$application", instance="$instance"}, pod)

Spring Pet Clinic Custom Dashboard

Gist (source)


Resources

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