Top Banner
Introduction à Rancher: Outil d'orchestration Docker 1
30

Docker meetup 2012106: Introduction à Rancher

Apr 16, 2017

Download

Technology

Rachid Zarouali
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Docker meetup 2012106: Introduction à Rancher

Introduction à Rancher:Outil d'orchestration Docker

1

Page 2: Docker meetup 2012106: Introduction à Rancher

2

Page 3: Docker meetup 2012106: Introduction à Rancher

PRESENTATION:Rachid Zarouali

Responsable SI

Synolia: intégrateur solutions E-Commerce/CRM/BI

twitter: @xinity

3

Page 4: Docker meetup 2012106: Introduction à Rancher

RANCHER:Developpé par RancherLabsOutil de pilotage d'infrastructure Docker100% OpenSourceProduction ready depuis la Version 1.2Version "entreprise" bientôt disponible

4

Page 5: Docker meetup 2012106: Introduction à Rancher

VUE D'ENSEMBLE:Modulaire:

UI: WebApp d'administrationrancher-compose: Cattle: Orchestration interneAPI REST

Mode: Serveur<->Agent(s)Support de Mesos/Kubernetes/SwarmSupport des principaux IaaS/PaaS

Integration de docker-machine

5

Page 6: Docker meetup 2012106: Introduction à Rancher

6

Page 7: Docker meetup 2012106: Introduction à Rancher

7

Page 8: Docker meetup 2012106: Introduction à Rancher

FONCTIONNALITÉSHigh Availability (DB mysql externe)RBAC (envionnement uniquement)Rancher Catalog (public ou privé)Rolling UpgradeRancher Services (DNS, Metadata, ....)HealthCheckAutoScaling

8

Page 9: Docker meetup 2012106: Introduction à Rancher

HIIGH AVAILABILITYActif/actifNécessite :

2 node server minimumune DB Mysql externe

Attention au sizing Mysql!

50 connexion/server2Go de RAM

9

Page 10: Docker meetup 2012106: Introduction à Rancher

CONTRÔLE D'ACCÈSGithubActive DirectoryLDAPSHIBBOLETH (v1.2)Compte locaux (Mysql)Environnement uniquement

AdminUser

10

Page 11: Docker meetup 2012106: Introduction à Rancher

RANCHER CATALOGRéférentiel d'application / stack applicative

dépot git structuré

2 formes disponibles par défaut:

Certifié rancherCommunity

S'appuie sur {docker,rancher}-compose

11

Page 12: Docker meetup 2012106: Introduction à Rancher

RANCHER CATALOG ├── traefik │ ├── 0 │ │ ├── docker-compose.yml │ │ ├── rancher-compose.yml │ │ └── README.md │ ├── 1 │ │ ├── docker-compose.yml │ │ ├── rancher-compose.yml │ │ └── README.md │ ├── 2 │ │ ├── docker-compose.yml │ │ ├── rancher-compose.yml │ │ └── README.md │ ├── 3 │ │ ├── docker-compose.yml │ │ ├── rancher-compose.yml │ │ └── README.md │ ├── 4 │ │ ├── docker-compose.yml │ │ ├── rancher-compose.yml │ │ └── README.md │ ├── catalogIcon-Traefik.svg │ └── config.yml

12

Page 13: Docker meetup 2012106: Introduction à Rancher

ROLLING UPGRADE

Stack applicative uniquementUpgrade "safe"Downgrade/Rollback possibleBlue/green deployment

https://botleg.com/stories/blue-green-deployment-with-docker/

13

Page 14: Docker meetup 2012106: Introduction à Rancher

AUTOSCALING

Répartition dynamique des servicesStack / Catalog uniquementS'appuie sur rancher-compose/!\ ne pas utiliser à haute charge /!\Scaling manuel pour tout autre "service"

14

Page 15: Docker meetup 2012106: Introduction à Rancher

RANCHER SERVICES

Ensemble de services internes / externesSimplifient le déploiement / administrationDNSIPSEC (overlay network) LBHealthCheckServeur de metadata

15

Page 16: Docker meetup 2012106: Introduction à Rancher

INSTALLATION

Linux (Kernel 3.10+)RancherOSCoreOSVMware photon/!\ RHEL/Centos /!\

devicemapper loopback

16

Page 17: Docker meetup 2012106: Introduction à Rancher

INSTALLATION (BIS)manuellement

docker run -d --restart=unless-stopped -p 8080:8080 rancher/server

Receipt Ansible / Salstack GCE:

$ gcloud compute instances create rancher-server \ --image-family coreos-beta \ --image-project coreos-cloud \--machine-type n1-standard-1 \--scopes useraccounts-ro,storage-rw,logging-write,monitoring-write,service-management,service-control,compute-rw,cloud-platform

$ gcloud ssh core@rancher-server

$ docker run -d --restart=unless-stopped -p 8080:8080 rancher/server

17

Page 18: Docker meetup 2012106: Introduction à Rancher

FOLLOW THE RULES !!!

N°1 : sur le serveur en production, d'agent tu n'installera point!

N°2 : Une DB Mysql externe tu deploiera, la HA tu activera !

N°3 : L'authentification par défaut tu configureras !

18

Page 19: Docker meetup 2012106: Introduction à Rancher

MONITORING:intégré

cpu / ram / disque / network

metric graphite ( mode push )

mode push (api non documentée)

applications tierces:

cadvisorprometheus exportercollectd docker plugin

External services (sematext / DataDog ...)

19

Page 20: Docker meetup 2012106: Introduction à Rancher

BACKUP:

docker volume driver

EmcGlusterFS nfsamazon S3convoy (RancherLabs)

dockup (TuTum)Flocker

20

Page 21: Docker meetup 2012106: Introduction à Rancher

21

Page 22: Docker meetup 2012106: Introduction à Rancher

22

Page 23: Docker meetup 2012106: Introduction à Rancher

23

Page 24: Docker meetup 2012106: Introduction à Rancher

KUBERNETES INTEGRATION1 node minimum ( minikube like )deploiement automatiqueRancher Catalog spécifique (pauvre)s'appuie sur les Rancher ServicesKubernetes Dashboard KO :(

24

Page 25: Docker meetup 2012106: Introduction à Rancher

25

Page 26: Docker meetup 2012106: Introduction à Rancher

MESOS INTEGRATION3 nodes minimumDéploiement automatique

( un peu douloureux ! )

s'appuie sur les Rancher ServicesMesos Marathon disponibleCatalog Marathon KO (DCOS Only)

26

Page 27: Docker meetup 2012106: Introduction à Rancher

27

Page 28: Docker meetup 2012106: Introduction à Rancher

http://www.synolia.com/carrieres/offres-d-emplois/administrateur-systemes-reseaux-hf-lyon/

28

Page 29: Docker meetup 2012106: Introduction à Rancher

29

Page 30: Docker meetup 2012106: Introduction à Rancher

30