26
DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23

DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

DEVOPS TALKSCONFERENCE

2018

MELBOURNEMarch 22-23

Page 2: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Whales, Cats and Kubernetes

Matt Ray@mattray

Page 3: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Matt RayManager/Solutions Architect – APJChef [email protected]

@mattraySoftware Defined Talk

Page 4: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Shifts in Modern Application ArchitectureDemand an application-centric operations model

Infrastructure

Centric

Operations

Application

Centric

Operations

Cloud

Containers

Microservices

UNIT OF VALUE is App

UNIT OF WORK is Deployment

UNIT OF VALUE is Server

UNIT OF WORK is Configuration

Infrastructure Automation Compliance Automation Application Automation

EXISTING BUSINESS

NEW BUSINESS

Page 5: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

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?

Page 6: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts
Page 7: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Security Code Quality

Container Hosting Peer Discovery Config Changes

Supervision Monitoring

Rolling Deployment Networking

Internal Registry Workload Placement

ProductionThe Container Learning Cliff

Development

Page 8: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts
Page 9: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Modern Application Workflow

SERVICE

SUPERVISOR

SERVICE

SUPERVISOR

SERVICE

SUPERVISOR

SERVICE

SUPERVISOR

USER ARTIFACT

Packaging Applications

Running Applications

PLAN DEPOT

DEPOT ARTIFACT

BARE METAL

CONTAINERS

AMI

VM

Page 10: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

hab plan init

Standardized build and packaging templates

▪ Go

▪ Java

▪ Node.js

▪ Ruby

▪ …and more

Page 11: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

plan.sh

FOO

▪ BAR

Page 12: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

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

Page 13: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

hab pkg export docker <origin>/<package>

Application &Libraries

Minimized OS

Top

to B

otto

m D

epen

denc

y R

esol

utio

n

Page 14: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

hab pkg export

Same immutable packages deployed everywhere

▪ ACI

▪ Cloud Foundry

▪ Docker

▪ Helm

▪ Kubernetes

▪ Mesos

▪ Tar

Page 15: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

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

Page 16: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Managing Applications

Automated Application Supervision

▪ Start, Stop, Reconfigure, etc.

▪ RESTful API

▪ Artifact updates

▪ Encrypted discovery service

Page 17: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Managing Services

LEADER

STAND ALONE

Topologies Update StrategiesRunning Applications

SERVICE

SUPERVISOR

SERVICE

SUPERVISOR

SERVICE

SUPERVISOR

SERVICE

SUPERVISOR

SERVICE

SUPERVISOR

SERVICE

SUPERVISOR

LEADER

ElECTION

ALL AT

ONCE

ROLLING

Page 18: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Kubernetes

#kubernetes

▪ hab pkg export kubernetes

▪ hab pkg export helm

▪ Habitat Kubernetes Operator

▪ OpenShift

▪ GKE, PKS, and more!

Page 19: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Demo Time!

Page 20: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

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

Page 21: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Windows Support

Build, deploy and manage Habitat packages on Windows

▪ plan.ps1▪ Native Windows Supervisor

▪ IIS, SQL Server, MySQL, and more

▪ ASP.NET Core, .NET Core, Node, and more

Page 22: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

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

Page 23: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

For Developers

Works on my machine

▪ Any language

▪ Automatic builds on commit

▪ Explicit dependency declarations

▪ Stable & unstable release channels

Page 24: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

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

Page 25: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Open Source Communityhttps://habitat.sh

Apache Licensed!

▪ https://github.com/habitat-sh

▪ 2017:

• 5,976 Commits - 2,411 Pull Requests - 142 Authors

• 12 core developers employed by Chef, 7 external maintainers

• 543 Core Packages

• 1,479 people in https://slack.habitat.sh

Page 26: DEVOPS TALKS CONFERENCE 2018 · DEVOPS TALKS CONFERENCE 2018 MELBOURNE March 22-23. Whales, Cats and Kubernetes Matt Ray @mattray. ... teamsto build, deploy, ... Immutable build artifacts

Matt Ray@mattray