VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
HSR Gastvortrag CloudInf 17.10.2017
Wie nutzen wir Cloud Infrastruktur
Aarno Aukia
VSHN AG
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Agenda
●
Wer ist Aarno / VSHN ?
●
Was machen wir und für wen ?
●
Wie nutz(t)en wir Cloud Infrastruktur bisher ?
●
'Herausforderungen'
●
Container/Docker ?
●
Cloud Native Computing
●
Container Orchestration
●
Aufbau Container Plattform APPUiO.ch
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Wer bist Du ?
Aarno Aukia, CTO & co-founder
ETH → Google → Atrila → VSHN
@aarnoaukia http://about.me/aarno
VSHN - the DevOps Company
Seit 2014, aktuell 22 Personen in Zürich
Wir helfen Software-Entwicklern ihre
Applikationen agil und 24/7 auf beliebiger
Infrastruktur zu betreiben.
https://vshn.ch @vshn_ch
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Ops: Feuerwehr as a Service
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
DevOps: people, processes & tools
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Philosophie
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Warum Cloud Infrastruktur
●
Fokus auf DevOps: Automatisierung,
Deployment
●
Software, nicht Hardware
●
Infrastructure-as-a-Service weltweit
verfügbar
●
Cloud-Unabhängigkeit
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Wie nutz(t)en wir Cloud Infrastruktur bisher 1
●
Ca 800 managed Server
●
Ca 32000 monitored Services
●
Weltweit verteilt
●
Alle Konfiguration in GIT
●
Standardmässig in Backup & Monitoring
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Wie nutz(t)en wir Cloud Infrastruktur bisher 2
●
Virtuelle Server auf beliebiger
infrastruktur
●
Erstellt (je nach Anbieter/Technologie):
●
Manuell
●
Via API (Ansible oder Terraform)
●
Via API (control.vshn.net)
●
Bootstrapping
●
Cloudinit → Hostname, Zertifikat → Puppet
●
Manuell → Hostname, Zertifikat → Puppet
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Wie nutz(t)en wir Cloud Infrastruktur bisher 3
●
Puppet
●
Basic config
●
Users/keys/hashes/groups/sudoers/ssh/ntp/dns/r
epos/tzconfig/puppet/partitions/mounts/dhcp/ip
tables/Monitoring/Backup
●
Services
●
MySQL/PostgreSQL/MongoDB/Nginx/Varnish/etc
●
Inkl IPtables, Monitoring, Backup
●
Appservers
●
PHP/Python/Ruby/Java/Javascript/Golang/Rust/E
rlang/Elixir/etc
●
Inkl IPtables, Monitoring, Backup
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Wie nutz(t)en wir Cloud Infrastruktur bisher 4
●
Puppet
●
Applikationen ('Profile')
●
Jira/Confluence/Bitbucket/ELK/BGP/Gitlab/Postfi
x/DNS/DHCP/Jenkins/Nextcloud/LDAP etc
●
Mit den Services die die App benötigt (DB etc)
●
Inkl IPtables, Monitoring, Backup
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Wie nutz(t)en wir Cloud Infrastruktur bisher 5
●
Ansible
●
Maintenance
●
Updates
●
Cluster-Orchestrierung
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Wie nutz(t)en wir Cloud Infrastruktur bisher 6
●
Integration mit Cloud-Anbietern
●
Erstellen neue VMs/Services über API
●
Compute
●
Storage
●
Private/public Networks
●
BGP für HA auf IP-Ebene (Failover, Anycast)
●
Loadbalancer (zB AWS ELB)
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Beispiel Kundenapplikation
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Herausforderungen
●
Server Skalierung benötigt Minuten bis Stunden,
ggf manuelles Eingreifen nötig
●
Configuration Management auf Server-Level,
nicht auf Projekt/Deployment-Level
●
Dependencies in separatem GIT, separates
Koordinieren von Versionen etc
●
Hinzufügen von Services ist komplex, betrifft
mehrere Komponenten, viele bewegliche Teile &
Risiko
●
Abhängigkeiten zwischen Services zur Laufzeit
●
Skaliert OK nach oben, schlecht nach unten
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Soll-Zustand: Weihnachtswunschliste
●
Löst den build-ship-run Workflow, integriert in
CI/CD, DevOps und Self-Service-Portal
●
Isolierung von verschiedenen
Projekten/Services/Kunden untereinander
●
Löst die alltäglichen Software-Plattform
Probleme: unterbruchsfrei deployen, skalieren,
Monitoring, Backup, Logs, Metriken, etc
●
Offene Standards: 100% Open Source
●
Kein Anbieter Lock-In, cloud-native nicht cloud-
only, funktioniert auf beliebiger Infrastruktur
●
Erweiterbar via API
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Docker
Container Laufzeitumgebung
Tools für Container Image Erstellung
'Dockerfile' beschreibt Umgebung, kann
automatisch erstellt und schnell gestartet werden
Verpackt Applikationscode, Applikationsserver,
Plugins, Module, Libraries bis zur Libc
'Motiviert' zum sauberen Umsetzen des 12-Factor-
App-Pattern
https://blog.vshn.ch/2016/11/docker
https://github.com/docker/docker-ce/blob/maste
r/components.conf
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/de/
●
deklarative Formate benutzen für die
Automatisierung der Konfiguration
●
einen sauberen, portablen Vertrag mit dem
zugrundeliegenden Betriebssystem
●
sich für das Deployment auf modernen Cloud-
Plattformen eignen
●
die Abweichung minimieren zwischen
Entwicklung und Produktion, um Continuous
Deployment zu ermöglichen
●
Parallel/horizontal skalieren können
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
From container to production ?
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Cloud Native Computing 1/2
Software-Patterns und 'best practice'
Erfahrung für (verteilte) Software
Applikationen
●
Containerisiert
●
Dynamisch orchestriert
●
Microservice-orientiert
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Cloud Native Computing 2/2
●
Open Source Software implementation
von diesen Software-Patterns
●
Erfahrung & Code Austausch für die
'generischen' Probleme
●
Infra unabhängig
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
The Cloud Native Computing Foundation
●
https://www.cncf.io/
●
Unter-Stiftung der Linux Foundation
●
Gegründet 2015
●
https://www.cncf.io/about/members/
●
Cisco, CoreOS, Docker, Google, IBM, RH,
SUSE, Netapp, Dell, Fujitsu, Huawei, Intel,
Samsung, ATT, Canonical, Twitter, ebay,
Zalando, etc
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
https://www.cncf.io/projects/ 1/3
Kubernetes
container/service orchestration
Prometheus
metrics aggregation & alerting
OpenTracing
distributed service call tracing
Fluentd
log data collector
Linkerd
service call framework (discovery, routing,
failure handling, visibility)
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
https://www.cncf.io/projects/ 2/3
gRPC
multi-language service call framework
(data serialization, streaming, auth)
CoreDNS
DNS server for service discovery
Containerd
container runtime daemon (OCI runtime
(runC), OCI image spec)
Rkt
container runtime (App Container (appc)
spec)
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
https://www.cncf.io/projects/ 3/3
CNI
Container Network Interface - networking
for Linux containers
Envoy
Service Proxy
Jaeger
Distributed Tracing
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Warum Cloud Native Computing?
●
Software-Patterns lösen high-level
Probleme anstatt 'einfach Tool X nehmen'
●
Open Source && Open Standards
●
Support von breitem Konsortium
●
Läuft auf jeder Infrastruktur → cloud-
native nicht cloud-only
●
Applikations-Infrastruktur als Code
●
DevOps Philosophie
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Kubernetes
Container Orchestrator
●
Wieviele Container Instanzen sollen
laufen pro Service?
●
Auf welchen IP/Port/Server befinden sie
sich?
●
Wie finden sie sich?
●
Was passiert wenn ein Container/Server
verschwindet?
●
Skalierung, Load Balancing, rollende
Deployments, Persistent Storage, etc
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Kubernetes Beispiel
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Fluentd
Log shipper
●
Logs von verschiedenen Quellen
zusammensammeln
●
Logs an verschiedene Endpunkte
weiterleiten
●
500+ Plugins, schlanker Core
●
Plugins werden individuell und verteilt
weiter entwickelt
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Prometheus
Metriken und Alerting
●
Time Series Datenbank
●
Query Sprache
●
Visualisierung/Graphen
●
Alarmieren auf Schwellwerte
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Cloud Native Computing
Cloud Native Computing Switzerland
https://www.meetup.com/de-DE/Cloud-Nat
ive-Computing-Switzerland/
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
OpenShift
Produkt aus den Open-Source
Technologien
Benutzt Docker, Kubernetes,
Prometheus*, Fluentd, etc unter der
Haube
Zusätzlich: automatisiert den Container-
Buildprozess
Web-GUI, CLI client, REST-API
https://blog.vshn.ch/2016/08/openshift
https://github.com/openshift/origin
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
OpenShift
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Warum wir dies einsetzen
●
Volle Kontrolle über den Inhalt des Containers
für den Entwickler
●
Automatisierung des Container-Build- und
Deployment-Prozesses, Interaktion via
GUI/CLI/API
●
Plattform macht und abstrahiert Deployment,
Load Balancing, SSL, Skalierung, System-
Updates, Monitoring, Backups, Hardware,
Storage, Netzwerk, etc
●
Effizienter Betrieb der standardisierten
Plattform inkl. Docker, Kubernetes, etc
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
APPUiO.ch
●
Service-Produkt von VSHN
●
Managed Docker, Kubernetes, OpenShift
●
Shared Plattform in der Schweiz auf
Cloudscale.ch
●
Private Cluster auf beliebiger
Infrastruktur weltweit (AWS, Azure, on-
premises)
●
Monatliche kostenlose halbtägige
Schulungen: TechLabs
●
Ab Fr. 40/Mt
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
APPUiO.ch
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
VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
Danke!
Tönt das alles spanned?
Wir suchen Leute!
https://stackoverflow.com/jobs/143639/sit
e-reliability-engineer-sre-and-devops-eng
ineer-vshn
https://blog.vshn.ch → Jobs
@vshn_ch @aarnoaukia

Weitere ähnliche Inhalte

PDF
Cloud Native Computing
PDF
Vagrant: Virtualisierungs Wrapper (Webinar vom 30.04.2015)
PDF
Docker: Container Management (Webinar vom 09.04.2015)
PDF
Cloud Native Computing & DevOps
PDF
Viele Server - Wenig Arbeit: Betriebsautomation bei ImmobilienScout24
PDF
Gitlab
PDF
Architektur und Automation als Enabler für DevOps
PDF
PyCon 2013 - Open Source Sponsoring - und den Chef damit überzeugen
Cloud Native Computing
Vagrant: Virtualisierungs Wrapper (Webinar vom 30.04.2015)
Docker: Container Management (Webinar vom 09.04.2015)
Cloud Native Computing & DevOps
Viele Server - Wenig Arbeit: Betriebsautomation bei ImmobilienScout24
Gitlab
Architektur und Automation als Enabler für DevOps
PyCon 2013 - Open Source Sponsoring - und den Chef damit überzeugen

Was ist angesagt? (7)

PDF
Foreman: Docker Integration (Webinar vom 05. Oktober_2016)
PDF
Liebe Mobiliar, wie macht Ihr eigentlich DevOps?
PDF
Videotechnik im web
PDF
AKCP SP2+: Die Neuheiten und Icinga 2 Integration (Webinar vom 27. April 2017)
PDF
GitLab als alternative Entwicklungsplattform zu Github.com
PDF
Herbstcampus2019_Kubernetes Docker Swarm
PDF
Begrüßung & Eröffnungsvortrag (TRANSCONNECT®-ANWENDERTAG 2018)
Foreman: Docker Integration (Webinar vom 05. Oktober_2016)
Liebe Mobiliar, wie macht Ihr eigentlich DevOps?
Videotechnik im web
AKCP SP2+: Die Neuheiten und Icinga 2 Integration (Webinar vom 27. April 2017)
GitLab als alternative Entwicklungsplattform zu Github.com
Herbstcampus2019_Kubernetes Docker Swarm
Begrüßung & Eröffnungsvortrag (TRANSCONNECT®-ANWENDERTAG 2018)
Anzeige

Ähnlich wie Wie nutzen wir Cloud-Infrastruktur @ VSHN.ch (20)

PDF
Wir arbeiten in der Cloud – eine Herausforderung für das IT Management?
PDF
Per Anhalter durch den Cloud Native Stack. #SEACONHH
PDF
Migration von Applikationen in die Cloud
PDF
A Hitchhiker’s Guide to the Cloud Native Stack. #ContainerConf
PDF
A Hitchhiker's Guide to the Cloud Native Stack
PDF
Continuous Delivery für Cloud-native Anwendungen auf Cloud-nativer Infrastruktur
PDF
Jug nbg containerplattform dcos
PDF
Private Cloud mit Open Source
PDF
Steinzeit war gestern! Wege der Cloud-nativen Evolution.
PDF
Per Anhalter durch den Cloud Native Stack (Extended Edition) #oop2017
PDF
Per Anhalter durch den Cloud Native Stack (extended edition)
PDF
OpenStack – Automatisiertes Bereitstellen von Instanzen
PDF
Enterprise Cloud Native ist das neue Normal
PDF
Dateisysteme und Datenbanken im Cloud Computing
PDF
Cloud-native Apps 2.0
PDF
Von der Straße in die Cloud: Optimierung von Logistikprozessen mit Docker, Ku...
PDF
fn project serverless computing
PDF
openstack Übersicht @GPN15
PDF
Auf gehts in die Cloud: „Das kann doch nicht so schwer sein!“
PDF
Günzel/Griesbaum -OpenShift und GitLab: Continuous delivery in der cloud
Wir arbeiten in der Cloud – eine Herausforderung für das IT Management?
Per Anhalter durch den Cloud Native Stack. #SEACONHH
Migration von Applikationen in die Cloud
A Hitchhiker’s Guide to the Cloud Native Stack. #ContainerConf
A Hitchhiker's Guide to the Cloud Native Stack
Continuous Delivery für Cloud-native Anwendungen auf Cloud-nativer Infrastruktur
Jug nbg containerplattform dcos
Private Cloud mit Open Source
Steinzeit war gestern! Wege der Cloud-nativen Evolution.
Per Anhalter durch den Cloud Native Stack (Extended Edition) #oop2017
Per Anhalter durch den Cloud Native Stack (extended edition)
OpenStack – Automatisiertes Bereitstellen von Instanzen
Enterprise Cloud Native ist das neue Normal
Dateisysteme und Datenbanken im Cloud Computing
Cloud-native Apps 2.0
Von der Straße in die Cloud: Optimierung von Logistikprozessen mit Docker, Ku...
fn project serverless computing
openstack Übersicht @GPN15
Auf gehts in die Cloud: „Das kann doch nicht so schwer sein!“
Günzel/Griesbaum -OpenShift und GitLab: Continuous delivery in der cloud
Anzeige

Mehr von Aarno Aukia (20)

PDF
DevOps for AI: running LLMs in production with Kubernetes and KubeFlow
PDF
Wie macht man aus Software einen Online-Service in der Cloud
PDF
DevOps & DevSecOps in Swiss Banking
PDF
The printing press of 2021 - using GitLab to publish the VSHN Handbook
PDF
Applikationsmodernisierung: Der Weg von Legacy in die Cloud
PDF
DevSecOps - Security in DevOps
PDF
Security in the DevOps pipeline of containerized core application: Case Study...
PDF
Next gen software operations models in the cloud
PDF
Kubecon 2019 Recap
PDF
DevSecOps: Bringing security to the DevOps pipeline
PDF
DevSecOps: Bringing security to the DevOps pipeline
PDF
DevSecOps: Bringing security to the DevOps pipeline
PDF
My broken container is gone - how to debug containers on container platforms
PDF
Automated Server Administration for DevSecOps
PDF
IT Governance and Security Architecture in Docker, Kubernetes, OpenShift
PDF
Continuous security improvements in the DevOps process
PDF
Application Portability using Cloud Native Technology: Docker, Kubernetes
PDF
Moving Applications to the cloud
PDF
IPv6 on Container Plattforms
PDF
Cloud Native Computing Meetup Zürich Jan 11 2018
DevOps for AI: running LLMs in production with Kubernetes and KubeFlow
Wie macht man aus Software einen Online-Service in der Cloud
DevOps & DevSecOps in Swiss Banking
The printing press of 2021 - using GitLab to publish the VSHN Handbook
Applikationsmodernisierung: Der Weg von Legacy in die Cloud
DevSecOps - Security in DevOps
Security in the DevOps pipeline of containerized core application: Case Study...
Next gen software operations models in the cloud
Kubecon 2019 Recap
DevSecOps: Bringing security to the DevOps pipeline
DevSecOps: Bringing security to the DevOps pipeline
DevSecOps: Bringing security to the DevOps pipeline
My broken container is gone - how to debug containers on container platforms
Automated Server Administration for DevSecOps
IT Governance and Security Architecture in Docker, Kubernetes, OpenShift
Continuous security improvements in the DevOps process
Application Portability using Cloud Native Technology: Docker, Kubernetes
Moving Applications to the cloud
IPv6 on Container Plattforms
Cloud Native Computing Meetup Zürich Jan 11 2018

Wie nutzen wir Cloud-Infrastruktur @ VSHN.ch

  • 1. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch HSR Gastvortrag CloudInf 17.10.2017 Wie nutzen wir Cloud Infrastruktur Aarno Aukia VSHN AG
  • 2. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Agenda ● Wer ist Aarno / VSHN ? ● Was machen wir und für wen ? ● Wie nutz(t)en wir Cloud Infrastruktur bisher ? ● 'Herausforderungen' ● Container/Docker ? ● Cloud Native Computing ● Container Orchestration ● Aufbau Container Plattform APPUiO.ch
  • 3. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Wer bist Du ? Aarno Aukia, CTO & co-founder ETH → Google → Atrila → VSHN @aarnoaukia http://about.me/aarno VSHN - the DevOps Company Seit 2014, aktuell 22 Personen in Zürich Wir helfen Software-Entwicklern ihre Applikationen agil und 24/7 auf beliebiger Infrastruktur zu betreiben. https://vshn.ch @vshn_ch
  • 4. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Ops: Feuerwehr as a Service
  • 5. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch DevOps: people, processes & tools
  • 6. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Philosophie
  • 7. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Warum Cloud Infrastruktur ● Fokus auf DevOps: Automatisierung, Deployment ● Software, nicht Hardware ● Infrastructure-as-a-Service weltweit verfügbar ● Cloud-Unabhängigkeit
  • 8. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Wie nutz(t)en wir Cloud Infrastruktur bisher 1 ● Ca 800 managed Server ● Ca 32000 monitored Services ● Weltweit verteilt ● Alle Konfiguration in GIT ● Standardmässig in Backup & Monitoring
  • 9. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Wie nutz(t)en wir Cloud Infrastruktur bisher 2 ● Virtuelle Server auf beliebiger infrastruktur ● Erstellt (je nach Anbieter/Technologie): ● Manuell ● Via API (Ansible oder Terraform) ● Via API (control.vshn.net) ● Bootstrapping ● Cloudinit → Hostname, Zertifikat → Puppet ● Manuell → Hostname, Zertifikat → Puppet
  • 10. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Wie nutz(t)en wir Cloud Infrastruktur bisher 3 ● Puppet ● Basic config ● Users/keys/hashes/groups/sudoers/ssh/ntp/dns/r epos/tzconfig/puppet/partitions/mounts/dhcp/ip tables/Monitoring/Backup ● Services ● MySQL/PostgreSQL/MongoDB/Nginx/Varnish/etc ● Inkl IPtables, Monitoring, Backup ● Appservers ● PHP/Python/Ruby/Java/Javascript/Golang/Rust/E rlang/Elixir/etc ● Inkl IPtables, Monitoring, Backup
  • 11. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Wie nutz(t)en wir Cloud Infrastruktur bisher 4 ● Puppet ● Applikationen ('Profile') ● Jira/Confluence/Bitbucket/ELK/BGP/Gitlab/Postfi x/DNS/DHCP/Jenkins/Nextcloud/LDAP etc ● Mit den Services die die App benötigt (DB etc) ● Inkl IPtables, Monitoring, Backup
  • 12. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Wie nutz(t)en wir Cloud Infrastruktur bisher 5 ● Ansible ● Maintenance ● Updates ● Cluster-Orchestrierung
  • 13. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Wie nutz(t)en wir Cloud Infrastruktur bisher 6 ● Integration mit Cloud-Anbietern ● Erstellen neue VMs/Services über API ● Compute ● Storage ● Private/public Networks ● BGP für HA auf IP-Ebene (Failover, Anycast) ● Loadbalancer (zB AWS ELB)
  • 14. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Beispiel Kundenapplikation
  • 15. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Herausforderungen ● Server Skalierung benötigt Minuten bis Stunden, ggf manuelles Eingreifen nötig ● Configuration Management auf Server-Level, nicht auf Projekt/Deployment-Level ● Dependencies in separatem GIT, separates Koordinieren von Versionen etc ● Hinzufügen von Services ist komplex, betrifft mehrere Komponenten, viele bewegliche Teile & Risiko ● Abhängigkeiten zwischen Services zur Laufzeit ● Skaliert OK nach oben, schlecht nach unten
  • 16. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Soll-Zustand: Weihnachtswunschliste ● Löst den build-ship-run Workflow, integriert in CI/CD, DevOps und Self-Service-Portal ● Isolierung von verschiedenen Projekten/Services/Kunden untereinander ● Löst die alltäglichen Software-Plattform Probleme: unterbruchsfrei deployen, skalieren, Monitoring, Backup, Logs, Metriken, etc ● Offene Standards: 100% Open Source ● Kein Anbieter Lock-In, cloud-native nicht cloud- only, funktioniert auf beliebiger Infrastruktur ● Erweiterbar via API
  • 17. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Docker Container Laufzeitumgebung Tools für Container Image Erstellung 'Dockerfile' beschreibt Umgebung, kann automatisch erstellt und schnell gestartet werden Verpackt Applikationscode, Applikationsserver, Plugins, Module, Libraries bis zur Libc 'Motiviert' zum sauberen Umsetzen des 12-Factor- App-Pattern https://blog.vshn.ch/2016/11/docker https://github.com/docker/docker-ce/blob/maste r/components.conf
  • 18. 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/de/ ● deklarative Formate benutzen für die Automatisierung der Konfiguration ● einen sauberen, portablen Vertrag mit dem zugrundeliegenden Betriebssystem ● sich für das Deployment auf modernen Cloud- Plattformen eignen ● die Abweichung minimieren zwischen Entwicklung und Produktion, um Continuous Deployment zu ermöglichen ● Parallel/horizontal skalieren können
  • 19. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch From container to production ?
  • 20. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Cloud Native Computing 1/2 Software-Patterns und 'best practice' Erfahrung für (verteilte) Software Applikationen ● Containerisiert ● Dynamisch orchestriert ● Microservice-orientiert
  • 21. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Cloud Native Computing 2/2 ● Open Source Software implementation von diesen Software-Patterns ● Erfahrung & Code Austausch für die 'generischen' Probleme ● Infra unabhängig
  • 22. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch The Cloud Native Computing Foundation ● https://www.cncf.io/ ● Unter-Stiftung der Linux Foundation ● Gegründet 2015 ● https://www.cncf.io/about/members/ ● Cisco, CoreOS, Docker, Google, IBM, RH, SUSE, Netapp, Dell, Fujitsu, Huawei, Intel, Samsung, ATT, Canonical, Twitter, ebay, Zalando, etc
  • 23. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch https://www.cncf.io/projects/ 1/3 Kubernetes container/service orchestration Prometheus metrics aggregation & alerting OpenTracing distributed service call tracing Fluentd log data collector Linkerd service call framework (discovery, routing, failure handling, visibility)
  • 24. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch https://www.cncf.io/projects/ 2/3 gRPC multi-language service call framework (data serialization, streaming, auth) CoreDNS DNS server for service discovery Containerd container runtime daemon (OCI runtime (runC), OCI image spec) Rkt container runtime (App Container (appc) spec)
  • 25. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch https://www.cncf.io/projects/ 3/3 CNI Container Network Interface - networking for Linux containers Envoy Service Proxy Jaeger Distributed Tracing
  • 26. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch
  • 27. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Warum Cloud Native Computing? ● Software-Patterns lösen high-level Probleme anstatt 'einfach Tool X nehmen' ● Open Source && Open Standards ● Support von breitem Konsortium ● Läuft auf jeder Infrastruktur → cloud- native nicht cloud-only ● Applikations-Infrastruktur als Code ● DevOps Philosophie
  • 28. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Kubernetes Container Orchestrator ● Wieviele Container Instanzen sollen laufen pro Service? ● Auf welchen IP/Port/Server befinden sie sich? ● Wie finden sie sich? ● Was passiert wenn ein Container/Server verschwindet? ● Skalierung, Load Balancing, rollende Deployments, Persistent Storage, etc
  • 29. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Kubernetes Beispiel
  • 30. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Fluentd Log shipper ● Logs von verschiedenen Quellen zusammensammeln ● Logs an verschiedene Endpunkte weiterleiten ● 500+ Plugins, schlanker Core ● Plugins werden individuell und verteilt weiter entwickelt
  • 31. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Prometheus Metriken und Alerting ● Time Series Datenbank ● Query Sprache ● Visualisierung/Graphen ● Alarmieren auf Schwellwerte
  • 32. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Cloud Native Computing Cloud Native Computing Switzerland https://www.meetup.com/de-DE/Cloud-Nat ive-Computing-Switzerland/
  • 33. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch OpenShift Produkt aus den Open-Source Technologien Benutzt Docker, Kubernetes, Prometheus*, Fluentd, etc unter der Haube Zusätzlich: automatisiert den Container- Buildprozess Web-GUI, CLI client, REST-API https://blog.vshn.ch/2016/08/openshift https://github.com/openshift/origin
  • 34. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch OpenShift
  • 35. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Warum wir dies einsetzen ● Volle Kontrolle über den Inhalt des Containers für den Entwickler ● Automatisierung des Container-Build- und Deployment-Prozesses, Interaktion via GUI/CLI/API ● Plattform macht und abstrahiert Deployment, Load Balancing, SSL, Skalierung, System- Updates, Monitoring, Backups, Hardware, Storage, Netzwerk, etc ● Effizienter Betrieb der standardisierten Plattform inkl. Docker, Kubernetes, etc
  • 36. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch APPUiO.ch ● Service-Produkt von VSHN ● Managed Docker, Kubernetes, OpenShift ● Shared Plattform in der Schweiz auf Cloudscale.ch ● Private Cluster auf beliebiger Infrastruktur weltweit (AWS, Azure, on- premises) ● Monatliche kostenlose halbtägige Schulungen: TechLabs ● Ab Fr. 40/Mt
  • 37. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch APPUiO.ch
  • 38. 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
  • 39. VSHN AG I Neugasse 10 I 8005 Zürich I T 044 545 53 00 www.vshn.ch Danke! Tönt das alles spanned? Wir suchen Leute! https://stackoverflow.com/jobs/143639/sit e-reliability-engineer-sre-and-devops-eng ineer-vshn https://blog.vshn.ch → Jobs @vshn_ch @aarnoaukia