Creating, Developing, and Testing a Helm Chart
Deploying a Registry
We already created an application (todo-app) and packaged it as a Docker image in the first sections of this guide. As a reminder, on the workspace server, you can find the Docker image we created by running the following command:
docker images
We need to push this image to a container registry so that it can be pulled by the Kubernetes cluster. We will use Harbor, an open-source container image registry that can be deployed on-premises. It provides a web interface, role-based access control, image vulnerability scanning, and more.
To install it, we will use the official Helm chart:
# Add the Harbor Helm repository
helm repo add harbor https://helm.goharbor.io
# Update the Helm repositories
helm repo update
# Source the variables.sh file to get the MASTER_PUBLIC_IP variable
# Optional since this is already sourced in the .bashrc
source ~/learning-helm/variables.sh
# Install Harbor using Helm
helm upgrade -i harbor harbor/harbor \
--namespace harbor \
--create-namespace \
--set expose.type=nodePort \
--set expose.nodePort.ports.http.nodePort=30002 \
--set expose.nodePort.ports.https.nodePort=30003 \
--set externalURL="https://$MASTER_PUBLIC_IP:30003" \
--set expose.tls.auto.commonName=Helm in Practice
Designing, Deploying, and Operating Kubernetes Applications at ScaleEnroll now to unlock current content and receive all future updates for free. Your purchase supports the author and fuels the creation of more exciting content. Act fast, as the price will rise as the course nears completion!
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
