Download - Docker swarm reloaded

Transcript
Page 1: Docker swarm reloaded

Docker Swarm Reloaded

Page 2: Docker swarm reloaded

GOVINDA FICHTNERPaessler AG Nürnberg The network monitoring company

Ansible, Chef, Amazon AWS, Linux, CI/CD Python, Ruby/Rails, Go … and Docker :)

DevOps & Cloud Engineer

Member of the Hypriot Docker Pirates

Page 3: Docker swarm reloaded

Docker presents Docker 1.12

Mission Make Orchestration as simple as Containers

Page 4: Docker swarm reloaded

Orchestration of course means Docker Swarm

Page 5: Docker swarm reloaded

DOCKER SWARM STANDALONEit is the old Docker native clustering solution

it is not deprecated

future versions of Docker will stay compatible with it

relatively complex to set up

has external dependencies e.g. distributed key/value store

lives at https://github.com/docker/swarm

Page 6: Docker swarm reloaded

DOCKER SWARM MODEit is the new Docker Swarm clustering solution

exists side-by-side with the old Docker Swarm

disabled by default

based on https://github.com/docker/swarmkit

Page 7: Docker swarm reloaded

DOCKER SWARM MODE FEATURES

no external dependencies

simple to set up

built-in/integrated with Docker-Engine

secure by default

managed with the standard Docker CLI

decentralised & resilient

Page 8: Docker swarm reloaded

SWARM MODE ARCHITECTURE

Manager nodes:responsible for orchestrating & maintaining the cluster statecommunication based on the RAFT protocol

Page 9: Docker swarm reloaded

SWARM MODE ARCHITECTURE

Worker nodes:receive tasks (containers) dispatched by manager nodesManager nodes can be worker nodes, too

Page 10: Docker swarm reloaded

SWARM MODE SECURITY

Page 11: Docker swarm reloaded

DOCKER SWARM MODE CONCEPTS

Manager Node - dispatches tasks to Worker Nodes & Cluster Management

Swarm - Cluster of Docker Engines with Swarm Mode enabled

Node - either Manager or Worker

Load Balancing - Ingress load balancing on all nodes

Task - the actual container running on a Worker Node

Service - Definition of the Tasks that should run on Workers

Page 12: Docker swarm reloaded

Demo Time

Page 13: Docker swarm reloaded

DOCKER SWARM MODE DEMO 1

getting started fast & experiment

based on Vagrant/Virtualbox

Github-Repo: https://github.com/hypriot/swarmlab

Page 14: Docker swarm reloaded

DOCKER SWARM MODE DEMO 2

it’s basically a CloudFormation Template & Ami

based on AWS

Currently in Beta only via invite

integrated with AWS infrastructure: ELB, Autoscaling Groups…

Page 15: Docker swarm reloaded

https://github.com/hypriot!

"

# http://blog.hypriot.com

@HypriotTweets@_beagile_ Govinda Fichtner

GET IN TOUCH

Image with bird swarm courtesy of Brent M at www.flickr.com/photos/thewakingdragon