In this exercise you will get familiar with helm and how it makes your life easier.
Go to the following link and install helm: https://helm.sh/docs/intro/install/
To see if everything is set up properly run the following command:
$ helm version
version.BuildInfo{Version:"v3.2.1", GitCommit:"fe51cd1e31e6a202cba7dead9552a6d418ded79a", GitTreeState:"clean", GoVersion:"go1.13.10"}
Let's add a repository! Use the repo located at https://grafana.github.io/helm-charts
Use the helm command add repo. Call this repo grafana. After you added it, use the search command and see what is available.
Now let's install a helm chart into our cluster. Install the grafana chart from the grafana repo. Make sure to search the repo first.
Check out what happens!
Try to see all releases with the list command.
Uninstall the helm chart
Now it's time to create our own helm chart. Use the helm create command for this.
We can now edit the values yaml to customize our chart. Do the following:
- set the replicas to 3 and enable autoscaling.
- enable the ingress and remove the host, also set the path to be /
Create a helm release out of your chart.
Controlling:
- Can you curl the ingress properly?
- How many replicas are deployed? Why is that amount deployed? Discuss your reasoning in the class.
Check the solutions solutions/3.md