Вы находитесь на странице: 1из 20

ique des Particules

OpenShift
MARTINEZ Guillaume et BRÉTEL Foudil
29 juillet 2016
Plan

 Démarche
 Planning

 Kubernetes

 OpenShift

 Démo

OpenShift 29/07/16 2
Origine et Démarche

 Constat vieillissement plateforme existante


 État de l'art de l'isolation

 Docker ⇒ orchestrateur

 PAAS OpenShift basé sur Kubernetes

+ déploiements

⇒ approche opportuniste

OpenShift 29/07/16 3
Objectifs

 Évaluer si et comment un PAAS comme OpenShift, ou un


orchestrateur comme Kubernetes, permettrait de construire
hébergement web mutualisé.
 Évaluer si OpenShift peut répondre à nos besoins de déploiment.

OpenShift 29/07/16 4
Mise en œuvre et Enjeux

 Installation/upgrade: automatisations, difficultés


→ se familiariser, être capable de réparer
 Comprendre l'architecture, les composants
→ être capable de configurer, d'administrer, d'utiliser
 Construire une maquette d'hébergement de site:
 custom: webmaster crée espace d'hébergement PHP. L'utilisateur
dépose son application par SFTP/Rsync.
 managed: webmaster spawn un CMS (WordPress, Drupal, DokuWiki).
L'utilisateur administre par HTTP.
 Tester le déploiement d'une de nos applications

OpenShift 29/07/16 5
Diagramme

M1 M2 M3

Légende
Machine physique ou VM

OpenShift 29/07/16 6
OpenShift

- Docker
- Conteneurisation d'applications
- Isolation
- Portabilité

- Kubernetes
- Orchestration
- Scaling
- Health Check

- OpenShift
- Solution de déploiement
- Build
- Routage

OpenShift 29/07/16 7
Docker – What is this ?

Libs
Configs

EN
V

OpenShift 29/07/16 8
Docker - Alternative

App 1 App 1 App 1

Bins/Libs Bins/Libs Bins/Libs

App 1 App 1 App 1


Kernel Kernel Kernel
Bins/Libs Bins/Libs Bins/Libs

Docker Engine Hyperviseur


Kernel Kernel

Infrastructure Infrastructure

Docker VM

OpenShift 29/07/16 9
Diagramme

M1 M2 M3
Docker Docker Docker

Légende
Machine physique ou VM
Applications divers

OpenShift 29/07/16 10
Kubernetes - Orchestration

Orchestration
- Scaling
- Health Check

Master Node
Scheduler API ETCD Kubelet

Directives
collecte d'informations

OpenShift 29/07/16 11
Diagramme

M1 M2 M3
Docker Docker Docker
Kubelet Kubelet

API Scheduler

ETCD

Légende
Machine physique ou VM
Applications divers
Orchestrateur

OpenShift 29/07/16 12
Kubernetes - Concepts

Replication Deployment
Controller Config

POD POD

Service Conteneur Conteneur

OpenShift 29/07/16 13
Diagramme

M1 M2 M3
Docker Docker Docker
Kubelet Kubelet

API Scheduler

ETCD
Service POD

Deployment Conteneur
Config
Replication
Controller

Légende
Machine physique ou VM Services Kubernetes Components
Applications divers Pods
Orchestrateur Conteneur Docker

OpenShift 29/07/16 14
OpenShift

Kubernetes pour les Développeurs

OpenShift 29/07/16 15
Diagramme

M1 M2 M3
Docker Docker Docker
Kubelet Kubelet
OpenShift
Interface Web API

API Scheduler

ETCD
Service POD

Deployment Conteneur
Config
Replication
Controller

Légende
Machine physique ou VM Services Kubernetes Components
Applications divers Pods OpenShift
Orchestrateur Conteneur Docker OpenShift Components

OpenShift 29/07/16 16
OpenShift – Source To Image

Sources

ImageStrea
m

Environement

Registre Docker privé

OpenShift 29/07/16 17
OpenShift – Routage

Route
https://monApp.ccapp.in2p3.fr Service

Service 1

Router H A
*.ccapp.in2p3.fr Service 2
P R O X Y

Service 3

OpenShift 29/07/16 18
Diagramme

M1 M2 M3
Docker Docker Docker
Kubelet Kubelet
OpenShift
Interface Web API
POD
API Scheduler
Registre
ETCD Docker
Service POD

Deployment Conteneur POD


Config
Routeu H A
Replication r
Controller P R O X Y

Légende
Machine physique ou VM Services Kubernetes Components
Applications divers Pods OpenShift
Orchestrateur Conteneur Docker OpenShift Components

OpenShift 29/07/16 19
OpenShift

DEMO

OpenShift 29/07/16 20

Вам также может понравиться