In this training, we will use Helm to create and customize an application.
Navigate to the folder
26_helm
from CLI, before you get started.
-
Check helm
helm version
-
Ensure autocompletion is installed
echo 'source <(helm completion bash)' >> ~/.bashrc && bash
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
-
Show all releases
helm ls
-
Release with its default values
helm install my-release-defaults ./my-chart
-
Show all releases
helm ls
-
Show kubernetes resources
kubectl get all
-
Delete a release
helm delete my-release-defaults
-
Release with a custom values.yaml file
helm install my-release-custom ./my-chart -f my-values.yaml
-
Show all installed charts
helm ls
-
Show kubernetes resources
kubectl get all
-
Change the color in the file
my-values.yaml
to re-releasehelm upgrade my-release-custom ./my-chart -f my-values.yaml
-
Show all releases
helm ls
-
Show kubernetes resources
kubectl get all
- Add templating for the deployment in the file ./my-chart/templates/deployment.yaml
... spec: replicas: {{ .Values.replicas }} selector: ...
- Add the replicas to the file my-values.yaml.
color: magenta replicas: 3
-
Re-release
helm upgrade my-release-custom ./my-chart -f my-values.yaml
-
Show all releases
helm ls
-
Show kubernetes resources
kubectl get pods
-
Render yaml files without deploying them
helm install my-chart ./my-chart --dry-run > dry.run
-
Lint your charts
helm lint ./my-chart
helm delete my-release-custom