O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Immutable Cloud Infrastruture as Code 101

79 visualizações

Publicada em

Cloud Native Night Mai 2019, Mainz: Vortrag von Alex Krause (@alex0ptr, Senior Softwareingenieur bei QAware)

Join our Meetup: www.meetup.com/cloud-native-night

== Dokument bitte herunterladen, falls unscharf! Please download slides if blurred! ==

Abstract: Eine solide Cloud Infrastruktur ist die Basis für Cloud-Native Applikationen. Diese muss genau wie die Anwendung einfach zu ändern, dynamisch skalierbar, hochverfügbar und sicher sein. Diese Anforderungen führen zu komplexen Strukturen, die selten von einzelnen Personen verwaltet werden. Zusätzlich ist es wünschenswert die Änderungen und die Erfüllung der Anforderungen nachvollziehbar über unterschiedliche Umgebungen hinweg zu dokumentieren. Glücklicherweise ist Cloud-Infrastruktur hochgradig automatisierbar.
In diesem technisch orientierten Vortrag kombinieren wir Infrastructure as Code und Immutable Infrastructure um eine produktionsreife Cloud-Infrastruktur aufzubauen. Insbesondere Cloud Einsteigern geben wir hierdurch Tools wie cloud-init, Packer und Terraform in die Hand um Standard-Architekturen auf AWS den eigenen Anstrich zu verpassen.

Code: https://github.com/alex0ptr/cloud-101

Publicada em: Dados e análise
  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

Immutable Cloud Infrastruture as Code 101

  1. 1. Alex Krause alex.krause@qaware.de @alex0ptr Immutable Cloud Infrastructure, as Code 101
  2. 2. @alex0ptr Immutable Cloud Infrastructure, as Code 101 Infrastructure AWS, GCP, DO Declarative 20102012 2006
  3. 3. Old Skool Cloud @alex0ptr Image: Run DMC: Streets of New York by Jeff Pinilla http://bit.ly/2Qk34XL / CC BY http://bit.ly/2vlsURa / turned black and white
  4. 4. „I’ve hugged a lot of servers in my life, and believe me, they do not hug you back. They hate you.“ —Werner Vogels, CTO of Amazon  @alex0ptrImage: Dutch Digital Pioneers - Werner Vogels by Guido van Nispen http://bit.ly/2IEOsQE / CC BY http://bit.ly/2vlsURa / Citation added
  5. 5. @alex0ptr VS
  6. 6. 📜 Immutable Infrastructure ‣ ~ 2012 at Netflix ‣ instantiate and replace, never change Gain: ‣ no state accumulation ‣ better consistency and security ‣ true rollbacks and easy experiments @alex0ptr
  7. 7. @alex0ptr “… is an open source tool for creating identical machine images for multiple platforms from a single source configuration.” ‣ 2013 ‣ Super Fast Deployment ‣ Multi-provider portability ‣ Improved stability ‣ Greater testability
  8. 8. 🎊 Demo 🎉 @alex0ptr https://github.com/alex0ptr/cloud-101
  9. 9. What else?🧐 @alex0ptr ‣ Virtualbox, VMware… ‣ Vagrant Boxes ‣ Ansible, Chef, Puppet…
  10. 10. How to add config and environment variables? 🤔 @alex0ptr
  11. 11. @alex0ptr “Cloud-init is the defacto multi-distribution package that handles early initialization of a cloud instance.” ‣ 2008 ‣ simple init for the cloud ‣ initially AWS EC2 ‣ pre-installed everywhere!
  12. 12. http://169.254.169.254/latest/user-data ✨ …where the Magic happens ✨ @alex0ptr
  13. 13. @alex0ptr #!/bin/sh echo "Hello cloud-init!"
  14. 14. @alex0ptr ## template: jinja #!/bin/bash {% if v1.region == 'us-east-2' -%} echo 'Installing custom proxies for {{ v1.region }}' sudo apt-get install my-xtra-fast-stack {%- endif %}
  15. 15. @alex0ptr #cloud-config packages: - cowsay users: - default - name: app groups: docker write_files: - content: nVc+Xj7rPhMqb... encoding: b64 owner: app:app path: /home/app/application.yml permissions: '0655'
  16. 16. How to provision and manage the Data Center? 🤔 @alex0ptr
  17. 17. 🏗 Infrastructure as Code ‣ 2010 AWS CloudFormation ‣ provision ‣ and manage data centers Gain: ‣ versioning ‣ speed ‣ consistency ‣ security ‣ collaboration @alex0ptr
  18. 18. Infrastructure as Code @alex0ptr Config ManagementVS MutableVSImmutable ConfigVSLifecycle
  19. 19. @alex0ptr “Write, Plan, and Create
 Infrastructure as Code” ‣ 2014 ‣ ~40 Clouds ‣ Databases, Monitoring-, Infrastructure-Software ‣ Plugins
  20. 20. 🎊 Demo 🎉 Enterprise Cloud Architecture @alex0ptr https://github.com/alex0ptr/cloud-101
  21. 21. @alex0ptrhttps://templates.cloudonaut.io/en/stable/vpc/
  22. 22. @alex0ptrhttps://templates.cloudonaut.io/en/stable/vpc/
  23. 23. @alex0ptrhttps://templates.cloudonaut.io/en/stable/vpc/
  24. 24. @alex0ptr Availability zone Subnet Availability zone Subnet Subnet Auto Scaling Group Subnet Instances Instances Application Load Balancer Application Load Balancer Amazon DynamoDB Amazon ECR Also: ‣ Network policies ‣ IAM
  25. 25. What else?🧐 @alex0ptr ‣ Modules ‣ Workspaces ‣ More Collaboration ‣ Outputs from other States
  26. 26. Lesestoff 🗞 ‣ A comprehensive Guide to Terraform. Gruntwork ‣ Free CloudFormation Templates. cloudonaut.io ‣ Complete AWS IAM Reference. cloudonaut.io ‣ Terraform 0.12 Preview. Terraform Blog @alex0ptr
  27. 27. xing.com/companies/qawaregmbh linkedin.com/company/qaware-gmbh slideshare.net/qaware twitter.com/qaware github.com/qaware youtube.com/qawaregmbh Alex Krause alex.krause@qaware.de @alex0ptr
  28. 28. QAware21.09.2018 28
  29. 29. QAware GmbH Mainz Rheinstraße 4 D 55116 Mainz Tel.: +49 (0) 6131 215 69 – 0 Fax: +49 (0) 6131 215 69 – 68 xing.com/companies/qawaregmbh linkedin.com/company/qaware-gmbh slideshare.net/qaware twitter.com/qaware github.com/qaware youtube.com/qawaregmbh
  30. 30. QAware GmbH München Aschauer Straße 32 81549 München Tel.: +49 (0) 89 23 23 15 – 0 Fax: +49 (0) 89 23 23 15 – 129 xing.com/companies/qawaregmbh linkedin.com/company/qaware-gmbh slideshare.net/qaware twitter.com/qaware github.com/qaware youtube.com/qawaregmbh

×