An introduction to Azure Draft and Helm Charts

9

Click here to load reader

Transcript of An introduction to Azure Draft and Helm Charts

Page 1: An introduction to Azure Draft and Helm Charts

An introduction to Azure Draft and Helm Charts

Page 2: An introduction to Azure Draft and Helm Charts

Who am I

Greg Cockburn

Chief Cloud Officer

@gergnz

Sponsor me: https://mobro.co/gergnz

Page 3: An introduction to Azure Draft and Helm Charts

What is Helm

The package manager for KubernetesHelm is the best way to find, share, and use software built for Kubernetes.

Helm helps you manage Kubernetes applications —Helm Charts helps you define, install, and upgrade even the most complex Kubernetes application.Charts are easy to create, version, share, and publish — so start using Helm and stop the copy-and-paste madness.The latest version of Helm is maintained by the CNCF - in collaboration with Microsoft, Google, Bitnami and the Helm contributor community.

100% plagiarised from https://helm.sh

Page 4: An introduction to Azure Draft and Helm Charts

What is Draft

Streamlined Kubernetes DevelopmentSimple app development & deployment - into any Kubernetes cluster.

Draft makes it easy to build applications that run on Kubernetes. Draft targets the "inner loop" of a developer's workflow: as they hack on code, but before code is committed to version control.

100% plagiarised from https://draft.sh

Page 5: An introduction to Azure Draft and Helm Charts

I’m basically just going to do live demos for the rest of this presentation…

Page 6: An introduction to Azure Draft and Helm Charts

Do we have a working Kube Cluster?

kubectl version

helm version

helm init --upgrade

Page 7: An introduction to Azure Draft and Helm Charts

Deploy someone else's Helm Chart

helm install stable/nginx-ingress

helm install -f values.yaml stable/jenkins

Page 8: An introduction to Azure Draft and Helm Charts

Build my own Chart~$ helm create mychart

~$ cat mychart/values.yaml

replicaCount: 1

image:

repository: gergnz/idle-butterfly

tag: ab8e2e19a3efe4800b3a3753b6d9ec5329af16d7

pullPolicy: IfNotPresent

service:

name: mychart

type: ClusterIP

externalPort: 80

internalPort: 8080

ingress:

enabled: true

hosts:

- mychart.b9f.io

annotations:

kubernetes.io/ingress.class: nginx

tls:

resources: {}

~$ helm install --dry-run --debug ./mychart

~$ helm install --debug ./mychart

Page 9: An introduction to Azure Draft and Helm Charts

Do Development with Azure Draft

• draft init --auto-accept --ingress-enabled• Create a flask app with requirements.txt• draft create• edit draft.toml• draft up• draft logs• draft connect