Helm - Kustomize Flashcards
How do you validate a helm chart?
helm lint hello-world
How do you render the template locally for quick feedback?
helm template ./hello-world
How do you install a helm chart into the Kubernetes cluster:
helm install –name hello-world ./hello-world
How to find out which charts are installed on a cluster?
helm ls –all
How to upgrade a release to a specified or current version of the chart or configuration
helm upgrade hello-world ./hello-world
How to roll back a release to the previous versions?
helm rollback hello-world 1
How to uninstall a release completely from k8s?
helm uninstall hello-world
How to create a versioned archive file of a helm chart?
helm package ./hello-world
How to search a helm repo?
helm search repo
show the status of a helm release
helm status RELEASE_NAME
downloads the charts added as dependencies to a chart
helm dependency update
Initialize a helm project
helm create hello-world
Configure helm deployment to use a specific image
In values.yaml, change the value of image.repository and image.tag.
Add mariadb dependency
in Chats.yaml add:
dependencies:
- name: mariadb
version: 11.0.13
repository: https://charts.bitnami.com/bitnami
Then run: helm dependency update
Specify environment variables
In values.yaml, add:
env:
- name: “QUOTES_HOSTNAME”
value: “famousapp-mariadb” - name: “QUOTES_DATABASE”
value: “quotesdb” - name: “QUOTES_USER”
value: “quotes” - name: “QUOTES_PASSWORD”
value: “quotespwd”