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.

Scalable Web Applications with 100% open source

402 views

Published on

Docker, Kubernetes, OpenShift
WebZürich Meetup 24.5.2017

Published in: Software
  • Be the first to comment

  • Be the first to like this

Scalable Web Applications with 100% open source

  1. 1. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch WebZürich Meetup 24.5.2017 Scalable Web Applications with 100% Open Source: Docker, Kubernetes, OpenShift Aarno Aukia VSHN AG
  2. 2. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Agenda ● About Aarno / VSHN ● How were we running web apps before ● Shortcomings & wishes ● What is Docker, Kubernetes, OpenShift ? ● Why use them ? ● Demo
  3. 3. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Who Aarno Aukia, CTO & co-founder ETH → Google → Atrila → VSHN @aarnoaukia http://about.me/aarno VSHN - the DevOps Company Since 2014, now 20 people in Zürich Helping Developers run web applications in any cloud making both visitors happy with stability and developers happy with agility https://vshn.ch @vshn_ch
  4. 4. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Ops: firefighting as a Service
  5. 5. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch DevOps: collaboration to fix source of problem
  6. 6. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
  7. 7. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch How were we running web applications ? ● Virtual servers on any IaaS-cloud ● Web-/App-/Cache-/Queue-/DB-services managed by Puppet & Ansible ● Config in GIT, separate repo from application ● Local VM with vagrant, from same config for development ●
  8. 8. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Customer project with python, celery, postgres
  9. 9. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Shortcomings ● Scaling up/down servers takes manual effort & time ● Python/Postgres/Apache/RabitMQ versions/plugins defined by configuration management for each server, not for each project/deployment and have to be communicated separately ● Adding new components is complex, lots of moving parts and risk
  10. 10. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Wishful thinking... ● Solves build-ship-run workflow, integrates in CI/CD, DevOps & self-service ● Isolate projects/services/customers ● Handles the standard software plattform problems: scaling, hitless deployment, monitoring, backup, etc ● Open standards: 100% open source, backed by big community ● No lock-in, free to choose any provider, works on any infrastructure ● Extensible with API
  11. 11. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Docker Lightweight container runtime Package code, runtime, plugins, libraries 'Dockerfile' describes image, Automatically built, quickly started Helps you to use 12-Factor-App pattern (explicit entrypoint, port, volume configurations) https://blog.vshn.ch/2016/11/docker https://github.com/docker/docker
  12. 12. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch 12 Factor App Patterns: https://12factor.net/ ● Use declarative formats for setup automation ● Have a clean, portable contract with the underlying operating system ● Are suitable for deployment on modern cloud platforms ● Minimize divergence between development and production, enabling continuous deployment ● And can scale up without significant changes to tooling, architecture, or development practices.
  13. 13. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch From container to production ?
  14. 14. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Kubernetes Container orchestrator: 'here is a container, run 3 of these with this config and give me a loadbalancer' 'distribute all my containers over these servers and make sure they can talk to each other' 'here is a new version of this container, update all my services without interruption' https://blog.vshn.ch/2016/08/openshift https://github.com/kubernetes/kubernetes
  15. 15. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Container orchestration
  16. 16. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch OpenShift How to get the application in the container ? Web-GUI, CLI client, REST-API https://blog.vshn.ch/2016/08/openshift https://github.com/openshift/origin
  17. 17. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch OpenShift
  18. 18. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Why? ● You have full control over the container contents → no more old versions by the hosting provider ● You control the build, deploy, run process from the GUI/CLI/API ● Plattform takes care of seamless deployment, SSL, load balancing, scaling, system updates, monitoring, backups, hardware, storage, network, etc ● You don't need to handle Docker, Kubernetes, OpenShift internals if you don't want to
  19. 19. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch APPUiO by VSHN ● Managed Docker, Kubernetes, OpenShift ● Flavours: Big shared plattform in the cloud, private plattform in the cloud or on-premises ● Hosted in Switzerland (ISO/FINMA- certified) or whereever you want (AWS, Azure, on-premises, etc) ● Community for Developers and Operations, Dev & Ops = DevOps ● Free monthly half-day training TechLabs ● Starting at CHF 40/mt
  20. 20. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Demotime Links: https://github.com/arska/python-helloworld https://github.com/openshift/django-ex https://github.com/arska/nodejs-helloworld https://github.com/arska/springdemo https://github.com/arska/phpinfo
  21. 21. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Thanks! We're looking for Site Reliability Engineers and DevOps Engineers ! https://stackoverflow.com/jobs/143639/sit e-reliability-engineer-sre-and-devops-eng ineer-vshn https://blog.vshn.ch → Jobs @vshn_ch @aarnoaukia

×