-
Which command is used to search for a wordpress helm chart package from the Artifact Hub?
Run
helm search hub
command to search specific charts on Artifact Hub.helm search hub wordpress
-
Add a bitnami helm chart repository in the controlplane node.
name - bitnamiUse
helm repo add
to add a named repository to your local repository cache.helm repo add bitnami https://charts.bitnami.com/bitnami
-
Which command is used to search for the joomla package from the added repository?
Run
helm search repo
to search specific packages from local repositories that have been added withhelm repo add
helm search repo joomla
-
What is the app version of joomla in the bitnami helm repository?
Determine this from the output of the command you ran in Q3. Examine the
APP VERSION
result column. -
Which chart version can you see for the joomla package in the bitnami helm repo?
Again from the results of Q3, examine the
CHART VERSION
column. -
How many helm repositories are added in the controlplane node?
Use
helm repo list
to list local repos and count them. Alternatively, if there are lots thenwc
can be used to count the lines output by the helm command. This saves time in the exam!helm repo list | wc -l
Subtract one from the result, as it has also counted the headings line.
-
Install drupal helm chart from the bitnami repository.
- Release name should be
bravo
. - Chart name should be
bitnami/drupal
.
The syntax of the command is
helm install release_name chart_name
, therefore-
Install
helm install bravo bitnami/drupal
-
Verify
helm list
- Release name should be
-
Which command is used to list packages installed using helm?
You already did this in Q7 to verify the chart installation!
helm list
-
Uninstall the drupal helm package which we installed earlier.
The syntax of the command is
helm uninstall release_name
, thereforehelm uninstall bravo
-
Download the bitnami apache package under the /root directory.
Note that although the question doesn't explicitly mention it, you need to also unpack the downloaded chart. Charts are downloaded as tarballs (like a zip file), so we must additionally tell it to unpack with the
--untar
argument.helm pull
is used to download charts without installing them.helm pull --untar bitnami/apache
This will download the chart and unzip it into a new folder which is the name of the chart (e.g.
apache
) -
Inspect the file values.yaml and make changes so that 2 replicas of the webserver are running and the http is exposed on nodeport 30080.
We know that the chart is now unpacked to the new directory
apache
. You can see this by runningls -l
You are given a URL for the chart installation documentation. Open that in another browser tab or window.
-
Open
values.yaml
invi
vi apache/values.yaml
-
Search the doc for
replica
. We see that the property is calledreplicaCount
. Find this invi
and set it to2
-
Search the doc for
nodePort
. We see that there's a propertyservice.nodePorts.http
. This is what we want. The dotted syntax gives you the YAML path to the property in the file, therfore you'll find it by looking through the values file for# scroll past lots of stuff... service: # more stuff... nodePorts: http:
Set the value for
http
to30080
.For correctness we should also set
service.type
fromLoadBalancer
toNodePort
, however it will work without this.
-
-
Install the apache from the downloaded helm package.
- Release name: mywebapp
Note that we need to install our edited version of the chart, therefore instead of passing the name of the chart to helm, we instead point it at the directory containing our edited chart.
helm install mywebapp ./apache
-
You can access the Apache default page by clicking on mywebapp link from the top of the terminal.
It should respond with
It works!