containers and orchestration approaches

20
Containers & orchestration approaches @derya_sezen DevOps Consultant / kloia

Upload: kloia

Post on 08-Feb-2017

228 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Containers and Orchestration approaches

Containers & orchestration approaches

@derya_sezenDevOps Consultant / kloia

Page 2: Containers and Orchestration approaches

docker● “Industry 3.0” of Software Development

● “Infrastructure-as-code” DevOps Practice

● Infra Cost Optimisation(Storage/VM)

● Binary/Byte + Hosting/OS Dependencies

● Identical dev-test-staging-prod...

Page 3: Containers and Orchestration approaches

Docker 1.12● Swarm-mode: Orchestration built-in,

Infra-agnostic

● Cryptographic Node Security: Mutual TLS, Key

rotation, Notary & TUF

● Routing Mesh: Service Discovery, Container

native load-balancing, Works with current LB,

IPVS

Page 4: Containers and Orchestration approaches

docker-Dev. Env.- “Local” Development Environment

- Lightweight vs. Vagrant

- Local vs. Prod identical

- “Infra-as-code” DevOps practice

Page 5: Containers and Orchestration approaches

docker-dockerfileDockerfile Image

Page 6: Containers and Orchestration approaches

docker-architecture

Page 7: Containers and Orchestration approaches

docker-Dev. Env.Dockerfile initiatives:

● FROM

● COPY/ADD

● RUN

● CMD/ENTRYPOINT

Page 8: Containers and Orchestration approaches

Docker-docker compose

Page 9: Containers and Orchestration approaches

Docker-docker machine

Page 10: Containers and Orchestration approaches

ORCHESTRATORS

Page 11: Containers and Orchestration approaches

dockerhttps://github.com/docker/example-voting-app

Page 12: Containers and Orchestration approaches

Docker datacenter- On-premises & cloud

- UCP (Universal Control Plane): Deploy&Manage Apps

- Docker Trusted Registry: Secure Images

Page 13: Containers and Orchestration approaches

Docker datacenter - deploy?● Set ENV for remote deploy:

○ DOCKER_HOST=tcp://kloiaclbpiplabel.westeurope.cloudapp.azure.com:443

○ DOCKER_TLS_VERIFY=1

○ DOCKER_CERT_PATH=/Users/dsezen/code/example-voting-app/ucp

● Convert docker-compose.yml to “dab”:○ docker-compose bundle

● Deploy via cli:○ docker deploy votingappdocker

Page 14: Containers and Orchestration approaches

Mesos● Apache Foundation Project

● C++

● Uber, Samsung, Verizon, Autodesk, Azure,

Twitter, Airbnb, Yelp, Ebay, Apple…

Page 15: Containers and Orchestration approaches

Mesos - marathon● Orchestration - Deploy

● Scala

● Service Discovery

● Event Subscription

● Docker natively supported

Page 16: Containers and Orchestration approaches

Mesos - OTHER● Chronos: Java, Replacement for cron

● Aurora: Twitter, Marathon + Chronos

● Mesosphere: DC/OS

Page 17: Containers and Orchestration approaches

Mesos - DC/OS● “DataCenter Operating System” abstracts resources such as CPU, RAM, and networking

● Distributed Operating System based on the Apache Mesos

● Embedded Marathon, Chronos

#dcos package install spark

#dcos cluster resize 100

Page 18: Containers and Orchestration approaches

Mesos - DC/OS - deploy?● dcos cli:

○ dcos marathon group add votingapp.json

● REST API:

○ curl -X POST http://10.141.141.10:8080/v2/apps -d @basic-3.json -H "Content-type: application/json"

Page 19: Containers and Orchestration approaches

rancher● Orchestration-agnostic: Swarm, Kubernetes, Mesos, Cattle

● Infra-agnostic: on-premises, public-cloud

● Open Source

Page 20: Containers and Orchestration approaches

questions?