tips, tricks and tools for running containers like a pro - rancher labs april 2016 online meetup

Post on 15-Apr-2017

2.015 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .

Tips Tricks and Tools for Running Containers like a Pro

April 28, 2016

#ranchermeetup

© 2015 Rancher Labs, Inc.2 © 2016 Rancher Labs, Inc .

Shannon WilliamsCo-Founder/VP Marketing @smw355

Darren ShepherdCo-Founder/Chief Architect @ibuildthecloudFreenode: darren0

#ranchermeetup

© 2015 Rancher Labs, Inc.3 © 2016 Rancher Labs, Inc .

Brandon Papworth Director of WebDom & Tom @brandonpapworth

Bill MaxwellSr. Devops LeadRancher Labs @cloudnautique

#ranchermeetup

© 2015 Rancher Labs, Inc.4 © 2016 Rancher Labs, Inc .

First things first…

This is a not a !

#ranchermeetup

© 2015 Rancher Labs, Inc.5

There are rules for a meetup!• We won’t be done on time• Questions are always welcome• There are no bad questions• Demo, then demo some more• Things will break, be patient

#ranchermeetup

© 2015 Rancher Labs, Inc.6

Join the conversation on Twitter #ranchermeetup

© 2015 Rancher Labs, Inc.7 © 2016 Rancher Labs, Inc .

Agenda• Building Your Rancher Tool Box – Shannon• Demo: Prometheus, Janitor & Web hooks– Darren• Managing Secrets with Vault – Bill • Demo: Vault – Bill • User Story: Rancher at Dom & Tom – Brandon• Demo – Brandon• Latest Rancher Update – Darren

#ranchermeetup

© 2015 Rancher Labs, Inc.8 © 2016 Rancher Labs, Inc .

Rancher Labs

#ranchermeetup

© 2015 Rancher Labs, Inc.9 © 2016 Rancher Labs, Inc .

Building a Container Service

Container Service

Linux Linux Linux Linux Linux Linux

© 2015 Rancher Labs, Inc.10 © 2016 Rancher Labs, Inc .

How to deploy a container service

Container Service

Linux Linux Linux Linux Linux Linux

App Catalog

Orchestration

Scheduling

Monitoring

Access Control

Network

Storage

Distributed DB

Registry

Engine

Security

Helm, …

Compose, Kubernetes, Marathon,

Swarm, Kubernetes, Mesos, …

cAdvisor, Sysdig, Datadog, …

LDAP, AD, GitHub, …

DockerHub, Quay.io, …

Docker, Rkt, …

Notary, Vault, …

VXLAN, IPSEC, HAProxy, …

Ceph, Gluster, Swift, …

Etcd, Consul, MongoDB, …

© 2015 Rancher Labs, Inc.11 © 2016 Rancher Labs, Inc .

Rancher OverviewMicroservice Catalog

AD/LDAP

Leverage existing tools:- CI/CD- Code

Repository- Monitoring

Environment 1 Environment N…Network Services Storage Services

Container Orchestration and SchedulingUser Mgmt Ops Mgmt

Environment 2

© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .

#ranchermeetup

Tips, Tricks and Tools for Running Containers Like a Pro

© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .

Building your container tool box

13

Registry - Code Repository - CI/CD – Logging – Monitoring – Storage – Data Services

© 2015 Rancher Labs, Inc.14 © 2016 Rancher Labs, Inc .

© 2015 Rancher Labs, Inc.15 © 2016 Rancher Labs, Inc .

Building Rancher Tools• Design extension to run as a

container• Leverage API & Metadata services• Distribute through the catalog• Provide scheduling and

configuration options

© 2015 Rancher Labs, Inc.16 © 2016 Rancher Labs, Inc .

Four tools we’re demoing today

© 2015 Rancher Labs, Inc.17 © 2016 Rancher Labs, Inc .

Scale-up, Scale-down, Upgrade & Redploy with Cowbell

• Container service that exposes a web hook and talks to the Rancher API and CLI

• Can be integrated with CI/CD or other systems

• Deployed from the catalog into each environment

© 2015 Rancher Labs, Inc.18 © 2016 Rancher Labs, Inc .

Building Dashboards with Prometheus

• Prometheus originally created by SoundCloud

• Catalog deployment created by the team at Infinity Works and NHS in the UK  

• Integrated with Rancher API

© 2015 Rancher Labs, Inc.19 © 2016 Rancher Labs, Inc .

Building Dashboards with Prometheus

© 2015 Rancher Labs, Inc.20 © 2016 Rancher Labs, Inc .

Cleaning up environments with Janitor

• Based on Meltwater/Docker-Cleanup

• Service developed by Steve Shipway at the University of Auckland

• Identifies Docker images no longer in use, and removes them from hosts.

© 2015 Rancher Labs, Inc.21 © 2016 Rancher Labs, Inc .

Managing secrets with Vault

• Developed by Hashicorp• Includes secret storage, key

rotation and audit logging• Initial Vault catalog item will be

available in the next week

© 2015 Rancher Labs, Inc.

© 2015 Rancher Labs, Inc.23

© 2015 Rancher Labs, Inc.24

© 2015 Rancher Labs, Inc.25

© 2015 Rancher Labs, Inc.26

© 2015 Rancher Labs, Inc.27

© 2015 Rancher Labs, Inc.28

© 2015 Rancher Labs, Inc.29

© 2015 Rancher Labs, Inc.30

© 2015 Rancher Labs, Inc.31

© 2015 Rancher Labs, Inc.32

© 2015 Rancher Labs, Inc.

Latest Rancher Enhancements

33

1.0.1• Rancher Multi-node Simplification

#ranchermeetup

1.1-dev1 (releasing next week)• Experimental Mesos support• F5 Load balancer integration• Customizable Docker Machine UI

© 2015 Rancher Labs, Inc.34 © 2016 Rancher Labs, Inc .

Getting StartedRancher and RancherOS are in GitHub – Get Involved!

#ranchermeetup

http://github.com/rancher

© 2015 Rancher Labs, Inc.35 © 2016 Rancher Labs, Inc .

New eBook: Building a CI/CD Pipeline with Docker & Rancher

http://info.rancher.com/cicd-with-docker-ebook

© 2015 Rancher Labs, Inc.© 2016 Rancher Labs, Inc .

Thank yourancher.com

#ranchermeetup

© 2015 Rancher Labs, Inc.37

© 2015 Rancher Labs, Inc.38

© 2015 Rancher Labs, Inc.39

© 2015 Rancher Labs, Inc.40

© 2015 Rancher Labs, Inc.41

© 2015 Rancher Labs, Inc.42

© 2015 Rancher Labs, Inc.43

© 2015 Rancher Labs, Inc.44

© 2015 Rancher Labs, Inc.45

top related