Date post: | 12-Jan-2017 |
Category: |
Engineering |
Upload: | philipp-grossenbacher |
View: | 97 times |
Download: | 3 times |
welcome to bern
docker community
11th Docker Switzerland User Group Meetup
Wie die Mobiliar dank Docker
zum Schnellboothafen wurde.
How la Mobilière built a speedboat harbor
using Docker
Darius Ueltschi
Daniel Strohecker
Table of contents
1. Introduction
2. Project overview
3. Docker
4. Challenges
5. IT Operations
28.10.2016Build a speedboat harbor using Docker 3
La Mobilière – short overview
28.10.2016Build a speedboat harbor using Docker 5
https://www.mobiliar.ch
AppServers
#2400Applications
#190
Introducing smide
28.10.2016Build a speedboat harbor using Docker 6
Introducing smide
Aim of smide:
• e-bike sharing
• Fully managed e-bikes without permanent stations
• Offers an easy way of bridging the “last mile” gap in public transportation
=> Explore alternative solutions for mobility
28.10.2016Build a speedboat harbor using Docker 7
Speedboat – boon and bane
What is a speedboat for
• Leads out of the business potential of an idea or concept
• Doesn’t matter, if the speedboat turns into a submarine and never reaches
the surface
• Doing all this things, without disturbing the core business
28.10.2016Build a speedboat harbor using Docker 8
..to be
or
not to be….
Speedboat – boon and bane
Implementation
• Building a minimum viable product (MVP)
• Cost sensitive
• No constraints, no guidelines ... just functionality … only speed matters …
• Security??? WTH is security ...
28.10.2016Build a speedboat harbor using Docker 9
Results in an operations nightmare
• The MVP isn’t conform to any existing guidelines, standard operation platforms…
• Doesn’t fit to any strategy
• Can’t be or shouldn’t be run in the standard Mobiliar data center
Speedboat – boon and bane
28.10.2016Build a speedboat harbor using Docker 10
smide - involved stakeholders
28.10.2016Build a speedboat harbor using Docker 11
Mobiliar operation:
• Runs the containers
Business
development:
• Project owner
• Defines requirements
• Handles the partners
• Financial responsibility
External
development:
• Implements the requirements
smide - architecture overview
28.10.2016Build a speedboat harbor using Docker 12
..and now, to come to the point…
28.10.2016Build a speedboat harbor using Docker 13
Docker
• Contractors create Docker images which can be easily shipped to the Mobiliar
• An dedicated Docker registry helps separate the containers from the internal and the external companies
• The helping hand of Kubernetes deploys any necessary certificates, configurations and the deployment files
• NFS is used to persist data from the containers.
• Backup and restore are provided by Mobiliar internal tools
28.10.2016Build a speedboat harbor using Docker 14
Challenges
• We have decided not to use the Mobiliar CI / CD chain (Teamcity, AMW) in the public access cluster at the moment
A separate solution is a huge amount of work
• The customer ships images directly, instead of code. Configuration is delivered separately
Manual deployment
• Communication between business development, external partners and Mobiliar operations
Find a channel and use it!
• One speedboat is working and the next is coming => Multi tenant?
Security handled by Kubernetes with certificates
Network separation could work by using Calico instead of Flannel (or Canal)
But Docker?
28.10.2016Build a speedboat harbor using Docker 15
… under the hood
28.10.2016Build a speedboat harbor using Docker 16
Operations
• Die Mobiliar is using Kubernetes heavily for the whole agile build/deploy chain
• Separate Kubernetes cluster for
Development
Preproduction
Production
• Need of a Kubernetes Test Lab cluster, testing new versions (Kubernetes, Docker, Etcd, Flannel, etc.)
• Extra Kubernetes public cluster (speedboats) for
Preproduction
Production
28.10.2016Build a speedboat harbor using Docker 17
Operations - Monitoring
• With Prometheus and Grafana you can have an optimal Kubernetes single cluster monitoring system.
28.10.2016Build a speedboat harbor using Docker 18
Operations - Logging
• Logfiles can be analyzed using Splunk which is implemented in the Mobiliar. Labels can be helpful!
The external partners are using the Kubernetes way of obtaining them.
28.10.2016Build a speedboat harbor using Docker 19
Operations - Dashboard
28.10.2016Build a speedboat harbor using Docker 20
… and a final word …
Transform your IT operations from a tanker in to a container home!
28.10.2016Build a speedboat harbor using Docker 21
… were we end up
28.10.2016Build a speedboat harbor using Docker 22
Questions & comments
28.10.2016Build a speedboat harbor using Docker 23
28.10.2016Build a speedboat harbor using Docker 24
http://smide.ch/
https://www.mobiliar.ch