Matt Butcher Microsoft. Helm, Brigade, Draft, and a bunch of other projects. Author of Go in Practice, Illustrated Children’s Guide to Kubernetes, and a bunch of other books. Teaches at Loyola University Chicago.
Kubernetes • Cluster management software • Based on Google's experience of running containers in production for about 15 years • Container orchestrator • System for automating deployment, scaling, and management of containerized applications • Has its own primitives (aka resources) • Pods, Deployments, Services, etc. • Declarative
When deploying applications to Kubernetes, you'll likely create a set of Kubernetes resources that work together to host and run your application container(s)
YAML, YAML, YAML • YAML for Kubernetes Deployment • YAML for Kubernetes Service • YAML for Kubernetes Secrets • YAML for Kubernetes ConfigMaps • Give Kubectl a manifest and it'll create a Kubernetes resource
• Packages of pre-configured Kubernetes resources • Recipe for installing an application in Kubernetes • Consist of • Metadata • Kubernetes resource manifests • Documentation • Can be templated with Go templating • Live in chart repositories Charts
Public Charts • Available on github.com/Kubernetes/charts • Stable charts – no alpha features, tested • Incubator charts – may contain alpha features, community iteration • Examples of how to deploy common applications in Kubernetes • Great for getting started *Can also create your chart repositories for hosting private charts
Configuration • Default configuration lives in values.yaml file inside chart • Can override values.yaml file • Can override configuration on command line using the –set flag
Chart Repositories • Where your charts live • An HTTP server able to serve YAML and tar files • Houses index.yaml file • Houses some packaged charts (tar files) • Can use Google Cloud Storage (GCS) Buckets, Azure Storage Blobs, Amazon S3, Github pages, or create your own web server
Helm Community • Over 200 contributors • Over 2.5k people in the Kubernetes Helm slack channel • Kubernetes Slack • #helm-users • #helm-dev • Grab an invite at slack.k8s.io • Weekly public developer calls on Thursdays • Standups on SIG-Apps calls • More info at github.com/kubernetes-helm/community
Future of Helm • Starting planning for Helm v3.0.0 • Feel free to submit issues • Will start discussion at the Helm Summit in January • Helm Summit • Mid-January • More info in slack channels • Anyone is welcome to attend • Helm mailing lists coming soon
Getting Started • $ draft init • Sets up local env • Sets up server side component: draftd • Pre-requisites • Running Kubernetes cluster or minikube • Container registry *unless minikube
$ draft create 1. Detects application language 2. Creates appropriate Dockerfile 3. Creates a Helm chart for your application 4. Creates a draft.toml file to store draft metadata and config
$ draft up 1. Bundles up directory and pushes to server 2. Builds Docker image 3. Pushes Docker image to container registry 4. Installs Helm chart in cluster using Docker image just created
Draft Packs • A way to bootstrap your application for Kubernetes • Includes a Dockerfile • Includes a Helm chart • Based off common best practices • Can customize • Includes a draft.toml file • For metadata and configuration purposes