This lesson demonstrates how to interact with Helm in a Kubernetes environment, covering tasks like searching, adding repositories, and deploying services.
Use this file to discover all available pages before exploring further.
In this lesson, you’ll learn how to perform various tasks with Helm—from searching for chart packages and adding repositories to configuring and installing charts. Follow the steps below, and refer to the command outputs to validate your progress.
Once added, search the repository for the Joomla package with:
helm search repo joomla
A sample output might look like:
root@controlplane ~ ➜ helm repo add bitnami https://charts.bitnami.com/bitnami"bitnami" has been added to your repositoriesroot@controlplane ~ ➜ helm search repo joomlaNAME CHART VERSION APP VERSION DESCRIPTIONbitnami/joomla 13.2.16 4.1.5 Joomla! is an award winning open source CMS pla...
From this output, observe that the Joomla package has an app version of 4.1.5 and a chart version of 13.2.16.
Open the values.yaml file within the Apache chart directory to make two essential changes:
Set the replica count for the web server to 2.
Configure the HTTP service to expose NodePort 30080.
Search the file for the replica settings. You might see a section like:
## @section Global parametersglobal: imageRegistry: "" imagePullSecrets: [] storageClass: ""## @section Common parameterskubeVersion: ""nameOverride: ""fullnameOverride: ""
Make the necessary modifications by adding or updating the entries for the replica count and the service configuration. For assistance on the file structure, refer to the official Helm or Bitnami documentation.Once the changes are complete, install the Apache chart from the current directory using the release name “mywebapp”:
helm install mywebapp .
Confirm the deployment by listing your Helm releases:
Retrieve and set the service IP by extracting the external IP of the Apache service, then print the URL:
export SERVICE_IP=$(kubectl get svc --namespace default mywebapp-apache --template "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}")echo URL : http://$SERVICE_IP/
Visit the printed URL in your web browser to confirm that the Apache page is successfully loading.
This lesson demonstrated how to interact with Helm in a Kubernetes environment: from searching and adding repositories to deploying, configuring, and accessing services using Helm. For further details and best practices, consider exploring the Helm Documentation.