0
0
Kubernetesdevops~10 mins

Installing charts in Kubernetes - Visual Walkthrough

Choose your learning style9 modes available
Process Flow - Installing charts
Start: Have Helm installed
Add Helm repo
Update repo to get latest charts
Search for chart
Install chart with helm install
Verify installation
Done
This flow shows the steps to install a Helm chart: add repo, update, search, install, and verify.
Execution Sample
Kubernetes
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm search repo bitnami/nginx
helm install my-nginx bitnami/nginx
kubectl get pods
This sequence adds a repo, updates it, searches for nginx chart, installs it, and checks pods.
Process Table
StepCommandActionResult/Output
1helm repo add bitnami https://charts.bitnami.com/bitnamiAdd bitnami repoRepository "bitnami" has been added
2helm repo updateUpdate repo infoHang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "bitnami" chart repository
3helm search repo bitnami/nginxSearch for nginx chartNAME CHART VERSION APP VERSION DESCRIPTION bitnami/nginx 13.2.24 1.24.0 Chart for the nginx web server
4helm install my-nginx bitnami/nginxInstall nginx chartNAME: my-nginx LAST DEPLOYED: <timestamp> NAMESPACE: default STATUS: deployed ...
5kubectl get podsCheck pods statusNAME READY STATUS RESTARTS AGE my-nginx-xxxxxxxxxx-xxxxx 1/1 Running 0 1m
6Installation complete, nginx pod is running
💡 Installation stops after verifying pod is running successfully
Status Tracker
VariableStartAfter Step 1After Step 2After Step 4After Step 5Final
Helm Repos[][bitnami][bitnami][bitnami][bitnami][bitnami]
Chart InfoNoneNoneLatest bitnami/nginx infoInstalled my-nginxmy-nginx pod runningmy-nginx pod running
Key Moments - 3 Insights
Why do we run 'helm repo update' after adding a repo?
Because adding a repo only registers it locally; 'helm repo update' fetches the latest charts from that repo, as shown in step 2 of the execution_table.
What does 'helm install my-nginx bitnami/nginx' do exactly?
It downloads the nginx chart from the bitnami repo and deploys it to Kubernetes with the release name 'my-nginx', as seen in step 4 where the status is 'deployed'.
How do we know the chart installed successfully?
By running 'kubectl get pods' and seeing the pod status as 'Running' in step 5, confirming the app is up.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the output of 'helm repo add' command?
ANAME: my-nginx LAST DEPLOYED: <timestamp>
BSuccessfully got an update from the "bitnami" chart repository
CRepository "bitnami" has been added
DNAME CHART VERSION APP VERSION DESCRIPTION
💡 Hint
Check step 1 in the execution_table under Result/Output column
At which step does the nginx pod become Running?
AStep 3
BStep 5
CStep 4
DStep 2
💡 Hint
Look at the 'kubectl get pods' command output in step 5
If you skip 'helm repo update', what will likely happen when you run 'helm search repo'?
AYou might see outdated or no chart info
BYou get an error saying repo not found
CYou get the latest chart info
DThe chart installs automatically
💡 Hint
Refer to step 2 and 3 in execution_table showing update then search
Concept Snapshot
Installing Helm charts:
1. Add repo: helm repo add <name> <url>
2. Update repo: helm repo update
3. Search charts: helm search repo <chart>
4. Install chart: helm install <release> <chart>
5. Verify with kubectl get pods
Always update repo before searching or installing.
Full Transcript
To install a Helm chart, first add the chart repository using 'helm repo add'. Then update your local repo info with 'helm repo update' to get the latest charts. Search for the desired chart using 'helm search repo'. Install the chart with 'helm install' giving it a release name. Finally, verify the installation by checking pod status with 'kubectl get pods'. This ensures your app is running correctly.