Transcript
Page 1: Containers&Orchestration Approaches

Containers & orchestration approaches

@derya_sezenDevOps Consultant / kloia

Page 2: Containers&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&Orchestration Approaches

ORCHESTRATORS

Page 4: Containers&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 5: Containers&Orchestration Approaches

docker-Dev. Env.

- “Local” Development Environment- Lightweight vs. Vagrant- Local vs. Prod identical- “Infra-as-code” DevOps practice

Page 6: Containers&Orchestration Approaches

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

Page 7: Containers&Orchestration Approaches

Docker datacenter- On-premises & cloud

- UCP (Universal Control Plane): Deploy&Manage Apps- Docker Trusted Registry: Secure Images

Page 8: Containers&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: (Beta version - experimental feature)○ docker deploy votingappdocker

Page 9: Containers&Orchestration Approaches

Mesos● Apache Foundation Project● C++● Uber, Samsung, Verizon,

Autodesk, Azure, Twitter, Airbnb, Yelp, Ebay, Apple…

Page 10: Containers&Orchestration Approaches

Mesos - marathon● Orchestration - Deploy

● Scala● Service Discovery● Event Subscription● Docker natively

supported

Page 11: Containers&Orchestration Approaches

Mesos - OTHER

● Chronos: Java, Replacement for cron● Aurora: Twitter, Marathon + Chronos● Mesosphere: DC/OS

Page 12: Containers&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 13: Containers&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 14: Containers&Orchestration Approaches

rancher● Orchestration-agnostic: Swarm, Kubernetes, Mesos, Cattle● Infra-agnostic: on-premises, public-cloud● Open Source

Page 15: Containers&Orchestration Approaches

questions?


Top Related