Creating, Developing, and Testing a Helm Chart
Installation from a Remote Registry
Now that our chart is stored in the Harbor OCI registry, we can install it directly from there. This is useful for sharing charts across teams or deploying them in different environments without needing to package them locally each time.
To install the chart from the OCI registry, we can use the following command:
# Remove any previous installation
# to start fresh
helm uninstall my-todo-chart -n todo-chart --ignore-not-found
kubectl -n todo-chart delete pvc --all --ignore-not-found
kubectl delete namespace todo-chart --ignore-not-found
# Install the chart from the OCI registry
helm install todo-chart oci://$MASTER_PUBLIC_IP:30003/todo-app/todo-chart \
--version 0.1.0 \
-n todo-chart \
--create-namespace \
-f $HOME/todo-chart-custom/values.yaml
We can verify that the installation was successful by checking the pods:
kubectl get pods -n todo-chart
We can run the tests to ensure everything is working correctly:
helm test todo-chart -n todo-chart
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:
