Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to build your own cloud while staying in bu...

Dirk Breuer
February 04, 2016

How to build your own cloud while staying in business

We're deeply sorry if you decided to deploy a new product in 2016. Not only are systems getting more and more complex, but you're spoilt by the choice between oodles of infrastructure solutions. But do not fear as Docker is here. Containarization set out to redeem you from all your ops hassle. But since there are still minor inconveniences like Networking, Service Discovery, Persistence of even Security to be taken care of, your job isn't done with containerizing everything. All of the above are fundamental architectural decisions you shouldn't approach reckless.

While Hashicorp tools are no silver bullet, they allow for pragmatic solutions while you still remain at the wheel. We want to show you how to setup an infrastructure suited for modern software needs.

Disclaimer: We're not affiliated by any means with Hashicorp. We just happen to like their tools a lot ;-)

Note: This is the talk @bascht and I gave at microxchg 2016.

Dirk Breuer

February 04, 2016
Tweet

More Decks by Dirk Breuer

Other Decks in Technology

Transcript

  1. Challenges Increasing complexity Multiple environments in different stages Multi/Hybrid cloud

    and evolving infrastructure New technologies Communication & Documentation
  2. Opportunities Infrastructure (not just servers) on demand Flexible APIs for

    all infrastructure components Affordable but powerful hardware and services Virtualization/Containerization
  3. “ is designed to handle many of the mundane tasks

    of developers and allow them to get to the important, unique part of their application. […] they host the developer’s application, back it up, monitor it and scale it – so the developer doesn’t have to. They handle logging, groups, users, session management […]” Solution at the end of the talk.
  4. THE FOLLOWING SLIDES HAVE BEEN APPROVED FOR ALL AUDIENCES BY

    THE BOARD OF BUZZWORDERY, INC. THE VIEWS ADVERTISED HAVE BEEN RATED ® SUBJECTIVE S www.yakshed.org CEOS REQUIRE ACCOMPANYING CERTIFIED DEVOP WHAT YOU ARE ABOUT TO SEE MAY CONTAIN SUBJECTIVE VIEWS OF THE SPEAKERS
  5. FIN

  6. Operations package { 'million-dollar-app': ensure => latest } ~> service

    { 'blazing-fast-webserver': ensure => running }
  7. Caveats ! Increasing complexity ! Changing running systems is still

    hard ! Bootstrapping is still a mess ! Every infrastructure component covered?
  8. What's the Problem Most of the time you want to

    run a business, not a platform Adapt your infrastructure to changing business needs Be able to evaluate new technologies
  9. { "builders": [{ "type": "docker", "image": "ubuntu", "commit": true }],

    "provisioners": [{…}], "post-processors": [[ { "type": "docker-import", "repository": "hotstartup/million-dollar-frontend", "tag": "{{user `tag`}}" }, { "type": "docker-push" } ]] }
  10. resource "aws_security_group" "db" { name = "db" ingress {} egress

    {} } resource "aws_db_instance" "db" { identifier = "million-dollar-app-db" engine = "postgres" name = "${var.db_name}" username = "${var.db_username}" password = "${var.db_password}" vpc_security_group_ids = ["${aws_security_group.db.id}"] }
  11. job "million-dollar-app" { region = "dach" datacenters = ["eu-fra-01", "eu-ber-01",

    "eu-ber-02"] type = "system" group "frontends" { count = 20 task "frontend" { driver = "docker" config { image = "hotstartup/million-dollar-frontend" } } } }
  12. SERVER SERVER SERVER Network Database Monitoring Database Storage Network LOGgING

    Dev-Production parity Repeatable builds Track artifacts Immutable infrastructure Service Discovery
  13. “Zimki is designed to handle many of the mundane tasks

    of developers and allow them to get to the important, unique part of their application. […] they host the developer’s application, back it up, monitor it and scale it – so the developer doesn’t have to. They handle logging, groups, users, session management […]” Quiz Solution Zimki
  14. Summary Find the adequate toolkit for you Look out for

    open and pluggable solutions Appreciate the parts of your infrastructure that work