- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Creating Helm Charts
There are some instances in which a chart for your application might not exist and one must be created; in other cases, you might have a Kubernetes deployment that you want to convert into a Helm chart. In this hands-on lab, we will take an existing deployment and convert it into a Helm chart.

Lab Info
Table of Contents
-
Challenge
Convert the Service Manifest into a Service Template in a New Helm Chart
Create a folder for the new chart and name it
blog
. Create the minimum necessary scaffolding for the new chart. Locate the existing manifest for the service in the/home/cloud_user/kubernetes
directory. Copy theservice.yaml
file into the new charts template directory. Take the necessary values from theservice.yaml
file and create entries in thevalues.yaml
file. Create the necessary directives to set the values in theservice.yaml
template. Make sure the service type isNodePort
and the nodePort value is30080
. -
Challenge
Convert the Application Manifest into a Deployment Template in a New Helm Chart
Locate the existing manifest for the application in the
/home/cloud_user/kubernetes
directory. Copy theapplication.yaml
file into the new charts template directory and name itdeployment.yaml
. Take the necessary values from thedeployment.yaml
file and create entries invalues.yaml
. Create the necessary directives to set the values in the service.yaml template. -
Challenge
Ensure the Manifests Render Correctly and Deploy the Application as a NodePort Application
Use the
--dry-run
option of theinstall
command to review the manifests and ensure they render correctly. After they are verified, deploy the application, then access the application on the primary server's public IP address at the node port.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.