Ihre Browserversion ist veraltet. Wir empfehlen, Ihren Browser auf die neueste Version zu aktualisieren.

Run this on katacoda

These are my personal notes while studying features on Helm, don't even bother reading this stuff unless you are desperately looking for a purpose in life. 

Go to helm package course

Setting up - run this

  • curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.8.2-linux-amd64.tar.gz
  • tar -xvf helm-v2.8.2-linux-amd64.tar.gz
  • mv linux-amd64/helm /usr/local/bin/
  • helm init
  • helm repo update
  • git clone https://github.com/agilesolutions/charts-istio
  • cd charts-istio/charts
  • helm lint productpage
  • helm template productpage/
  • helm package productpage/
  • helm install productpage/

Searching & Install

  • helm search mysql
  • helm inspect stable/mariadb
  • helm install stable/mariadb --name mydb
  • helm status mydb | grep Persist
  • kubectl run mydb-mariadb-clitn  --rm --tty -i --image bitnama/mariadb --command -- mysql -h mydb-mariadb
  • helm inspect values stable/mariadb
  • helm install -f config.yaml stable/mariadb
  • helm install -f config.yaml --set mariadbRootPassword=whatever stable/mariadb

Upgrading and rolling back releases

  • helm get values mydb
  • helm upgrade mydb --set mariadbDatabase=anotherdatabase
  • helm get values mydb
  • helm history mydb
  • helm rollback mydb 3
  • helm history mydb
  • helm list
  • helm delete mydb
  • helm list --all
  • helm delete --purge mydb
  • helm install --set subchart2.enabled=false
  • helm install --values=custom-values.yaml mychart

Managing charts

  • helm create mychart
  • helm package mychart
  • helm create mychart --starter mystarter (located at $HELM_HOME/starters)
  • helm deb up mychart (pull over all dependent charts to the charts sub directory)
  • helm template mychart
  • helm lint mychart
  • helm install mychart --name=productpage
Hosted by WEBLAND.CH