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.

Application Portability using Cloud Native Technology: Docker, Kubernetes

58 views

Published on

Talk held Dec 3rd at SwissRE, Zürich, Switzerland

Published in: Software
  • Be the first to comment

  • Be the first to like this

Application Portability using Cloud Native Technology: Docker, Kubernetes

  1. 1. VSHN - The DevOps Company Application portability using cloud native computing Aarno Aukia, CTO @ VSHN - The DevOps Company
  2. 2. VSHN - The DevOps Company ● About Aarno & VSHN.ch ● From Ops to DevOps ● From configuration management to containers ● Container orchestration/Kubernetes ● Kubernetes Distributions ● Kubernetes as a Service: APPUiO.ch ● Cloud Native Computing 22 Agenda
  3. 3. VSHN - The DevOps Company @aarnoaukia http://about.me/aarno aarno.aukia@vshn.ch ETH → Google → Atrila → VSHN VSHN - The DevOps Company Since 2014, currently 30 VSHNeers in Zürich, Switzerland We help developers run web applications 24/7 in any cloud making both visitors happy with stability and developers happy with agility 33 About Aarno & VSHN.ch
  4. 4. VSHN - The DevOps Company 4 OPS = Firefighting-as-a-Service ? 4
  5. 5. VSHN - The DevOps Company DevOps: People, Processes & Tools 55
  6. 6. VSHN - The DevOps Company Memberships 77
  7. 7. RoRo-Ferry Trucks, drivers & cargo Truck tare weight: 15 tons Low density of cargo 8 8 From configuration management to containers Container Ferry Transports Containers = cargo Container tare weight: 2 tons high density of cargo
  8. 8. RoRo-Ferry Largest Ferry: MV Ulysses 241 Trucks 50,938 Gross Tonnage 9 9 From configuration management to containers Container Ferry Largest ship: OOCL 21413 containers (TEU) 210,890 Gross Tonnage
  9. 9. Virtual Machines Full operating system one or multiple applications networking & storage inside server-oriented 10 10 From configuration management to containers Software Containers Application & libraries one application networking & storage external service-oriented
  10. 10. 11 11 From configuration management to containers Virtual Machines Software Containers Automatic Orchestration Configuration Management Container Orchestration Tools Puppet, Ansible, etc Kubernetes, Docker Swarm Scope Server/VM Application instance, deployment or project Maintenance update/patch replace
  11. 11. 12 12 From configuration management to containers Virtual Machines Software Containers Scaling time minutes - hours seconds Typical instance size 10-100 GB 0.1-1 GB Instance Lifecycle years days Application & configuration versioning separated combined
  12. 12. VSHN - The DevOps Company ● “Docker” ○ Kernel-based process isolation based on lxc/libcontainer/runc (CNCF open standard) ○ Open Source Tools for container image creation and management (“Docker CE”) ○ Company based in San Francisco (“Docker inc”) ○ Enterprise software product (“Docker EE”) ○ Online portal for public docker containers (“Dockerhub” hub.docker.com) ● “Dockerfile” ○ Text file containing all the instructions to build and assemble the application into a container including application code, appserver, plugins, modules, libraries down to libc ○ Goal: document & automate the build process ○ Usually in the application GIT repository ○ References a base image to incrementally add the application to 1313 Container technology: Docker
  13. 13. VSHN - The DevOps Company ● Use declarative formats for setup automation ● Have a clean, portable contract with the underlying operating system ● Are suitable for deployment on modern cloud platforms, obviating the need for servers and systems administration; ● Minimize divergence between development and production, enabling continuous deployment for maximum agility; ● And can scale up without significant changes to tooling, architecture, or development practices. 1414 12 Factor App Patterns: https://12factor.net/
  14. 14. VSHN - The DevOps Company From container to production? 1515
  15. 15. VSHN - The DevOps Company ● How many container instances should be running per service? ● On which IP/port/server are they running on? ● Service discovery ● What happens if a container/server goes away? ● scaling, load balancing, rolling deployments, persistent storage, networking 1616 Container orchestration: Kubernetes
  16. 16. VSHN - The DevOps Company Kubernetes Example 1717
  17. 17. VSHN - The DevOps Company Kubernetes Example 1818 apiVersion: apps/v1beta1 kind: Deployment metadata: name: hello-deploy spec: replicas: 2 template: metadata: labels: app: hello spec: containers: - name: hello image: arska/flask-helloworld:1 ports: - containerPort: 8080 env: - name: MESSAGE value: "Important Message Configuration"
  18. 18. VSHN - The DevOps Company ● Red Hat OpenShift ● Rancher RKE ● Canonical ● Docker Datacenter Enterprise ● IBM cloud private ● EKS, AKS, GKE ● APPUiO.ch See also https://thenewstack.io/find-perfect-kubernetes-distribution/ 1919 Kubernetes Distributions
  19. 19. VSHN - The DevOps Company Kubernetes Distribution Architecture 2020
  20. 20. VSHN - The DevOps Company Kubernetes Service Architecture 2121
  21. 21. VSHN - The DevOps Company ● OpenShift, Kubernetes, Docker ● Logging: EFK ● Metrics: Prometheus ● SSL-Certificates (letsencrypt.org) ● Source-to-image builder, Dockerfile builder, Docker-Image-Registry ● Load-balancing, horizontal (auto) scaling, rolling deployments ● MySQL/MariaDB, PostgreSQL, Redis, Solr, Elasticsearch, RabbitMQ, MongoDB ● 24/7 Support and SLA 2222 Auxiliary Services
  22. 22. VSHN - The DevOps Company Docker Kubernetes 2323 Layers of abstraction Hardware Operating System Service discovery & Load balancing Application Server Application Cloud/Onprem
  23. 23. VSHN - The DevOps Company 2424 Global reach through standardization & Automation
  24. 24. VSHN - The DevOps Company ● Free & open standard ● Adopted by all major vendors (Google, AWS, MS, Redhat, Suse, IBM, etc) ● available as managed service both on-premises and (private) cloud based ● Provides integration in infrastructure (compute, storage, networking) ● Provides optional integration in plattform (e.g. DBaaS, S3) services ● Infrastructure as code, automation, tools for DevOps processes ● Large ecosystem of auxiliary tooling & integration available ● Is being adopted as standard runtime by ISVs (Avaloq, Finnova, Abacus, Adcubum, Ergon, etc) 2525 Benefits of Kubernetes as abstraction
  25. 25. VSHN - The DevOps Company The CNCF Landscape 2626
  26. 26. VSHN - The DevOps Company Next Event February 21, 2019 from 6.30pm https://www.meetup.com/Cloud-Native-Computing-Switzerland Please volunteer for Sponsoring & Talks https://cnc-meetup.ch 2727 Cloud Native Computing
  27. 27. VSHN - The DevOps Company ● Please do get in touch with feedback ● Twitter: @aarnoaukia ● Linkedin: https://www.linkedin.com/in/aukia/ ● Email: aarno.aukia@vshn.ch 2828 Thank you
  28. 28. Come visit us for a coffee! VSHN AG - Neugasse 10 - CH-8005 Zürich - +41 44 545 53 00 - https://vshn.ch/ - info@vshn.ch https://vshn.ch/kontakt/ Follow us on Twitter! @vshn_ch 29

×