Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

DevOpsDays_Kubernetes Docker Swarm

77 views

Published on

Kubernetes, Docker Swarm… Which container orchestrator should I take?
DevOpsDays Istanbul 2019

Published in: Technology
  • Be the first to comment

  • Be the first to like this

DevOpsDays_Kubernetes Docker Swarm

  1. 1. © OPITZ CONSULTING 2019 Kubernetes, Docker Swarm… Which container orchestrator should I take? DevOpsDays Istanbul 2019 Dr. Halil-Cem Gürsoy OPITZ CONSULTING
 
 @hgutwit
  2. 2. © OPITZ CONSULTING 2019 $ whoami | xargs finger ■Senior Solution Architect @ OPITZ CONSULTING ■Since 20 years in the Java world ■ Before that implementing scientific stuff in Pascal, C, Lisp … ■Large distributed enterprise systems (banking, insurances …) ■ Build, deployment & persistence ■ „DevOps“, Infrastructure as Code, automation…
  3. 3. © OPITZ CONSULTING 2019 A Long Container Journey with Docker ■Since Docker 0.8 (2014) productive with Docker ■Build & test-environments for large scaled agile projects ■ Java/JEE, databases (NoSQL, RDBMS) and much more ■Continuous Delivery with Docker ■ Jenkins, Bamboo, Docker Swarm, Kubernetes … ■ …but confessing "Kubephob" (experiencing exposure therapy)
  4. 4. © OPITZ CONSULTING 2019 Agenda
  5. 5. © OPITZ CONSULTING 2019 https://www.flickr.com/photos/8592508@N04/41582130120/
  6. 6. © OPITZ CONSULTING 2019https://www.slideshare.net/try_except_/running-kubernetes-in-production-a-million-ways-to-crash-your-cluster-devopscon-munich-2018
  7. 7. © OPITZ CONSULTING 2019https://www.flickr.com/photos/angusf/2270317189
  8. 8. © OPITZ CONSULTING 2019https://www.flickr.com/photos/haddadi/5971508861
  9. 9. © OPITZ CONSULTING 2019https://www.flickr.com/photos/56631565@N06/6386384663
  10. 10. © OPITZ CONSULTING 2019 Plattform Classification Infrastructure- Platform (IaaS) Virtualised Systems Container Platform (CaaS) Container Application Platform (PaaS) Applications
  11. 11. © OPITZ CONSULTING 2019 Einordnung Infrastructure- Platform (IaaS) vSphere OpenStack AWS EC2 DigitalOcean GCE Azure Container Platform (CaaS) (Docker Swarm) Docker DC Kubernetes ECS GKE ACS Application Platform (PaaS) CloudFoundry OKD / OpenShift Nomad Heroku
  12. 12. © OPITZ CONSULTING 2019 Ease + + + - - - - - + + Support by provisioning 
 tools +/- - - - / + + + Learning curve + + + - - - - + + Installation & Post-Install
  13. 13. © OPITZ CONSULTING 2019 Internal Structure Binary + + +
 (single binary) - (many components) - - (much more components…) + + +
 (single binary*) Additional plugins needed? + - - - + + Storage - + + + + - 
 (Docker) Network + + - - - - - High Availability (Setup & Usage) + + / - - + / -
  14. 14. © OPITZ CONSULTING 2019 High Availability ■Docker Swarm with 3 or 5 managers setup by few CLI commands ■ Internal communication between managers by RAFT ■ … but very unstable on unreliable networks ■A high available K8s means a lot of work and effort ■ Many components, etcd has to bu run clustered ■Nomad needs for HA a Consul cluster resulting in high efforts ■All have to fight with split brain situations on unreliable networks
  15. 15. © OPITZ CONSULTING 2019 Operations Administration CLI, REST CLI, REST, WebUI CLI, REST, WebUI CLI, REST, WebUI Monitoring - - - / + + + - - Log aggregation + - / + + + -
  16. 16. © OPITZ CONSULTING 2019 „Wheel of Doom“ https://sudo.hailoapp.com/services/2015/03/09/journey-into-a-microservice-world-part-3/
  17. 17. © OPITZ CONSULTING 2019 Application Deployment Complexity + + - - (w/o additional tools like Helm) + + Rolling updates + + + + + + + + Canary deployments - + + + + + Blue / Green deployment -
 (manually) + + + + Rollback + + + + + + + +
  18. 18. © OPITZ CONSULTING 2019 Application Support Auto scaling - - -
 (few tools) +
 (HPA on Pod level) + + + - Service load balancing + + + +
 (many configuration changes needed) + + + / - Support by 
 Service Mash
 frameworks - - - + + + + + + - - -
  19. 19. © OPITZ CONSULTING 2019 Community & Activity Market share - / + + + + + - Github Moby: 54,4k Stars
 15,7k Forks 56,2k Stars
 19,6k Forks Origin: 6,6k Stars
 3,8k Forks 5,1k Stars
 1k Forks Stack Overflow 2,5k 19,2k 6k 0,1k
  20. 20. © OPITZ CONSULTING 2019https://www.flickr.com/photos/twicepix/3902796929/
  21. 21. © OPITZ CONSULTING 2019 K8s… https://cdn.yongbok.net/ruo91/architecture/k8s/v1.1/kubernetes_architecture.png https://bee42.com/de
  22. 22. © OPITZ CONSULTING 2019 Deploying OpenFaaS
  23. 23. © OPITZ CONSULTING 2019 Welcome in my YAML-Hell https://www.flickr.com/photos/clement127/15914534662
  24. 24. © OPITZ CONSULTING 2019 –Eberhard Wolff, Java Champion „Do we worship complexity?“
  25. 25. © OPITZ CONSULTING 2019 And DevOps?
  26. 26. © OPITZ CONSULTING 2019 Final thoughts. ■Minikube != Kubernetes, MiniShift != OpenShift ■Kubernetes setup and operations is very complex ■Deployment of many microservices without additional tools is a real pain ■The wall between Dev and Ops gets higher and thicker by on how Kubernetes is run on-premise ■Hosted Kubernetes should be preferred
  27. 27. © OPITZ CONSULTING 2019 Final thoughts.. ■OpenShift / OKD and Rancher are alternatives to vanilla K8s ■ But running OS/OKD is again more complicated ■Rancher is a „lightweight“ solution to use Kubernetes ■ Unfortunately the support for Cattle has been dropped in Rancher 2.x (Cattle = Compose like YAML)
  28. 28. © OPITZ CONSULTING 2019 Final thoughts… ■Docker Swarm is fast configured and easy to run ■Deployment using Compose files (YAML) ■Unfortunately it is not honoured as it should … ■Since DockerCon EU 2018 Docker Inc. concentrates more on Kubernetes integration then on swarmkit and related libraries
  29. 29. © OPITZ CONSULTING 2019https://www.flickr.com/photos/eschipul/4160817135
  30. 30. © OPITZ CONSULTING 2019 https://www.flickr.com/photos/tcmorgan/7372944070 @OC_WIRE OPITZCONSULTING opitzconsulting opitz-consulting-bcb8-1009116 WWW.OPITZ-CONSULTING.COM

×