customer story - why containers by sameer kumar
TRANSCRIPT
![Page 1: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/1.jpg)
115/9/2017
Sameer KumarSenior Solution Architect, ASHNIK
![Page 2: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/2.jpg)
2
Customer storyFrom why containers to we want more!
15/9/2017
![Page 3: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/3.jpg)
3
Agenda
• Business challenges and choosing containers for micro services architecture
• Getting started, deploying, start small
• Liking it and scaling out
• Managing the complexities
• Integrating with heterogeneous environment
15/9/2017
![Page 4: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/4.jpg)
4
Day 0 - Challenges with traditional ITChallenges in maintaining traditional IT!
15/9/2017
![Page 5: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/5.jpg)
5
Dev Vs Ops
Dev
• Developing new requirements without breaking things
• Tracking dependencies becomes challenging
• Continuous integration
15/9/2017
Ops
• Deploying new packages with dependencies
• Coping up with continuous deployment
• Scaling becomes complex with complexity of application
![Page 6: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/6.jpg)
6
Typical Landscape of Application
15/9/2017
![Page 7: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/7.jpg)
7
Day 2 – Microservices & CloudAshnik worked with customer to begin the modernization!
15/9/2017
![Page 8: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/8.jpg)
8
Microservices and Cloud to your rescue
Dev
• Develop smaller services
• Make changes without breaking other services
• Micro-services with loose contract
15/9/2017
Ops
• Provisioning made easy
• Scale-out on demand
• Scale smaller services easily
![Page 9: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/9.jpg)
9
Breaking down an app to micro-services
15/9/2017
![Page 10: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/10.jpg)
10
Challenges don’t end yet!
• Standardizing multiple services and their stack
• Isolation – Provisioning VM/Servers per service
• Hardening and Patching
• Package and library dependency for each stack grows exponential
• Multiple Failure points – Ensuring up time of each services
• Hybrid Application and Stack
• Maintaining traditional application and modern services
• Lock-in with Cloud Vendors
15/9/2017
![Page 11: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/11.jpg)
11
Day 7 – Deploying Microserviceswith Containers
15/9/2017
![Page 12: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/12.jpg)
12
Build Ship Run with containers
15/9/2017
![Page 13: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/13.jpg)
13
Code your Infrastructure – Dockerfile
• Dockerfile can be used to script a build – Infrastructure as Code
• You can specify steps which should be followed for building an image e.g.• Pull an image
• Install latest JRE
• Copy dependent library and jar files etc
• Create table in database
• You can setup networking e.g. expose/map port, DNS
• Add volumes and mounts
15/9/2017
![Page 14: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/14.jpg)
14
Code the infra for multi-tier app – docker-compose• Docker Compose can be used to stitch multiple components together –
docker-compose.yml
• You can bind them by a network
• You can provide build script (Dockerfile) for individual components or provide steps for each
• You can setup networking e.g. expose/map port for each component
• You can specify dependency e.g. web server is linked with application server
• Link with external containers/app
• Use Docker Stack Deploy for production deployment
15/9/2017
![Page 15: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/15.jpg)
15
Demo
• Build using Dockerfile
• Deploy voting app using docker-compose
• Scale-able deployment with Docker Swarm services• Voting app with Swarm Services
15/9/2017
![Page 16: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/16.jpg)
16
After 1 month – Containers at ScaleNeed for Orchestrator and Secure Registry
15/9/2017
![Page 17: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/17.jpg)
17
New challenges
• More services – more containers
• Multiple nodes for high availability
• Need for a orchestrator and scheduler
• Single view for deploying and monitoring containers
• Need a secure repository for images and version control
15/9/2017
![Page 18: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/18.jpg)
18
Solution – Docker Enterprise Edition
• Docker Universal Control Plane is built on top of Swarm for orchestrating containers
• You can run multiple controller nodes for High availability
• Run Docker Trusted Registry to store images
• Secure private repository of certified platforms
15/9/2017
![Page 19: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/19.jpg)
1915/9/2017
![Page 20: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/20.jpg)
2015/9/2017
![Page 21: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/21.jpg)
21
Demo
• Docker Universal Control Plane
• Docker trusted registry
• Push and pull• Build and push image to DTR
• Pull from DTR and run container/service
15/9/2017
![Page 22: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/22.jpg)
22
3rd Month in ProductionMore containers everyday
15/9/2017
![Page 23: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/23.jpg)
23
New requirements
• Need to integrate services
• Networking across containers and services
• Service discovery and load-balancing
15/9/2017
![Page 24: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/24.jpg)
24
Solutions
• Different architecture customized for deployment
• Docker Swarm Service
• Swarm Routing Mesh
• HTTP Routing Mesh
15/9/2017
![Page 25: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/25.jpg)
25
Deploying with external load-balancer
15/9/2017
![Page 26: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/26.jpg)
26
Deploying with UCP – Swarm Routing Mesh
15/9/2017
![Page 27: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/27.jpg)
27
Service Discovery with HRM
15/9/2017
![Page 28: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/28.jpg)
28
Demo
• Swarm Service
• Swarm Routing Mesh• “Tweet to us” page with docker service
• HTTP Routing Mesh• “Tweet to us” page with HRM
• Rolling update to service
• Swarm Deploy with HTTP Routing Mesh• Voting-app with HRM
15/9/2017
![Page 29: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/29.jpg)
29
6th Month: The chaos of MicroservicesContinuous Integration and Deployment of multiple services
15/9/2017
![Page 30: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/30.jpg)
30
Need for streamlining
• How to harden deployment platforms?
• How to create policy for platform certification?
• How to test and integrate continuously?
• How to ensure standards while coping up with continuous deployment?
15/9/2017
![Page 31: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/31.jpg)
31
Solution
• Build image hardening and certification pipeline with Jenkins
• Image promotion rules in Docker Trusted Reigstry
• Deploy and test code in container on check-in
• Deploy with certified stack and Role-base access control
15/9/2017
![Page 32: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/32.jpg)
32
Hardening and Certification with DTR
15/9/2017
![Page 33: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/33.jpg)
33
Image Promotion and Production rollout
15/9/2017
![Page 34: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/34.jpg)
34
Continuous Integration and Deployment
15/9/2017
![Page 35: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/35.jpg)
35
Demo
• Image certification pipeline
• Image auto-promotion based on rules
• Continuous Integration Piple line with Jenkins and Docker
15/9/2017
![Page 36: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/36.jpg)
36
After a Year!Happily married to containers, but we want to do more!
15/9/2017
![Page 37: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/37.jpg)
37
New demands!
• Maintaining different deployment for different platforms• Tradition Vs Modern deployment
• But what about our Windows Application?
• We have some legacy mainframe too!
• We might soon move to cloud, are these containers portable?
15/9/2017
![Page 38: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/38.jpg)
38
Solution
• Modernize your traditional Applications – Lift & Shift
• Docker EE 17.06
• Uniform deployment and integration
15/9/2017
![Page 39: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/39.jpg)
39
Multi-platform Deployment
15/9/2017
![Page 40: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/40.jpg)
40
Modern and Legacy Apps – Hybrid Adoption
15/9/2017
![Page 41: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/41.jpg)
41
Modernize App and Freedom of Deployment
15/9/2017
![Page 42: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/42.jpg)
42
Demo
• Windows Container
• Application/Stack with Linux + Windows container
15/9/2017
![Page 43: Customer story - Why Containers by Sameer Kumar](https://reader034.vdocuments.mx/reader034/viewer/2022051504/5a648bfe7f8b9a31568b51d1/html5/thumbnails/43.jpg)
4315/9/2017