Skip to Main Content
The DevOps 2.2 Toolkit
book

The DevOps 2.2 Toolkit

by Viktor Farcic
March 2018
Intermediate to advanced content levelIntermediate to advanced
360 pages
7h 52m
English
Packt Publishing
Content preview from The DevOps 2.2 Toolkit

Creating scaling job

Let's try to translate the commands we executed manually into a Jenkins job. If we manage to do that, we can go further and let Alertmanager trigger that job whenever certain thresholds are reached in Prometheus.

We'll start by downloading Jenkins stack from the vfarcic/docker-flow-monitor (https://github.com/vfarcic/docker-flow-monitor) repository.

curl -o jenkins.yml \    https://raw.githubusercontent.com/vfarcic/docker-\flow-monitor/master/stacks/jenkins-aws-secret.ymlcat jenkins.yml

The stack definition we just downloaded is almost identical to the one we used before so we'll comment only the differences.

version: "3.2"services:  ...  agent:    image: vfarcic/jenkins-swarm-agent    ...    secrets:      - aws      ...secrets:  aws:    external: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The DevOps 2.4 Toolkit

The DevOps 2.4 Toolkit

Viktor Farcic

Publisher Resources

ISBN: 9781788991278Supplemental Content