A live demo talk about Helm by Rob Richardson.
See the slides at https://robrich.org/slides/at-the-helm-of-kubernetes/#/
-
Install helm from https://github.com/helm/helm/releases and set
helm
in your path. -
Build the docker image:
cd src docker build -t atthehelm:v0.1.0 . cd ..
-
Run the template for the helm chart in the
chart
folder:helm template chart --set imageLabel=v0.1.0,ingressHost="",registry=""
or start it directly in Kubernetes:
helm template chart --set imageLabel=v0.1.0,ingressHost="",registry="" | kubectl apply -f -
-
Create a helm chart package:
a. Install helm-pack plugin:
helm plugin install https://github.com/thynquest/helm-pack.git
b. Package the chart in the
chart
folder:helm pack chart --app-version 0.1.0 --version 0.1.0 --destination dist --set imageLabel=v0.1.0,registry="",ingressHost=""
-
Run the packaged chart:
helm install my-app ./dist/atthehelm-0.1.0.tgz --set ingressEnabled=false,replicas=2
then see what you created:
helm list
-
Remove the chart:
helm uninstall my-app
MIT, Copyright Richardson & Sons, LLC