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

Matt Ray - Infrastructure Agnostic Application Automation

Matt Ray - Infrastructure Agnostic Application Automation

Infrastructure Agnostic Application Automation

Application and operations teams are at a crossroads of bring applications into “traditional” infrastructure and containerized applications. Much of the effort of configuration management is dealing with the shortcomings of packages and the underlying operating systems. With the rush to move everything to containers, operational concerns are often overlooked. Applications need to standardize their builds, their packaging, and how they are instrumented for observability.

The open source Habitat project (https://habitat.sh) wants to make it easier to build, manage and deploy applications into containers and traditional operating systems. Habitat is a system for building, packaging and making applications more manageable. Habitat answers the question ““what’s in the box?”” and complements container orchestrators like Kubernetes and Docker Swarm while providing a path for bringing new and legacy Linux and Windows applications into modern environments (not just containers!). This session will discuss the evolution of application management, provide an overview of Habitat and a demonstration of building and packaging multi-node applications.

Why would this talk be a good fit for the DevOpsDays audience?
Managing applications in hybrid environments is an ongoing struggle.
DevOpsDays Singapore 2017

DevOpsDays Singapore

October 25, 2017
Tweet

More Decks by DevOpsDays Singapore

Other Decks in Technology

Transcript

  1. Application automation that enables modern application teams to build, deploy,

    and manage any application in any environment - from traditional to cloud native architectures. What is Habitat?
  2. Security Code Quality Container Hosting Peer Discovery Config Changes Supervision

    Monitoring Rolling Deployment Networking Internal Registry Workload Placement Production The Container Learning Cliff Development
  3. hab plan init Standardized build and packaging templates ▪ Go

    ▪ Java ▪ Node.js ▪ Ruby ▪ …and more
  4. hab studio enter Builds an immutable artifact ▪ Disposable, reproducible

    build environment ▪ Produces a signed, timestamped .hart file with runtime dependencies and manifest ▪ Push to package depo
  5. hab pkg export Same immutable packages deployed everywhere ▪ ACI

    ▪ Cloud Foundry ▪ Docker ▪ Mesos ▪ Tar
  6. Configuration Configuration from the Environment ▪ default.toml ▪ docker run

    -e HAB_REDIS='tcp-backlog=128' mattray/redis ▪ echo “port=6380” | hab config apply redis.prod 3
  7. Managing Applications Automated Application Supervision ▪ Start, Stop, Reconfigure, etc.

    ▪ RESTful API ▪ Artifact updates ▪ Encrypted discovery service
  8. Managing Services Supervisor Service Groups ▪ Clustering Topologies ▪ Update

    Strategies ▪ Service Group Bindings SERVICE SUPERVISOR SERVICE SUPERVISOR SERVICE SUPERVISOR SERVICE SUPERVISOR SERVICE SUPERVISOR SERVICE SUPERVISOR
  9. Target Kubernetes apiVersion: habitat.sh/v1 kind: ServiceGroup metadata: name: exampleapp spec:

    image: kinvolk/nodejs-hab count: 1 habitat: topology: standalone group: nodejs config: user-toml-secret
  10. Habitat Builder SaaS-based build service ▪ GitHub integration ▪ Automated

    builds and dependency rebuilds ▪ Public and private origins ▪ Release channels for Continuous Delivery ▪ Container publishing to Docker Hub ▪ > 500 packages for common applications and libraries https://bldr.habitat.sh
  11. Windows Support Build, deploy and manage Habitat packages on Windows

    ▪ plan.ps1 ▪ Native Windows Supervisor ▪ ASP.NET Core, .NET Core, Node, and more
  12. 12 Factor/Cloud Native Implements 12 Factor application patterns ▪ Decouples

    the app from operating system dependencies ▪ Separates concerns of ‘build’ from ‘deploy’ ▪ Provides declarative deployment capabilities ▪ Configuration from the environment ▪ Immutable artifacts https://12factor.net
  13. For Developers Works on my machine ▪ Any language ▪

    Automatic builds on commit ▪ Explicit dependency declarations ▪ Stable & unstable release channels
  14. For Operators Works the same everywhere ▪ Automated container builds

    ▪ Immutable build artifacts ▪ Release channels for CD workflow ▪ Consistent management of any application on any platform
  15. Open Source Community https://habitat.sh Apache Licensed! ▪ https://github.com/habitat-sh ▪ This

    year: • 1458 Pull Requests - 189 From Non Chef Employees • 106 Authors - 37 Non Chef Employees • 25 Habitat Releases • 6174 Core Package Releases