Bird
0
0

You want to automate adding a Helm repo and installing a chart from it in a script. Which commands in order will achieve this safely?

hard📝 Workflow Q9 of 15
Kubernetes - Helm Package Manager
You want to automate adding a Helm repo and installing a chart from it in a script. Which commands in order will achieve this safely?
Ahelm repo add myrepo https://charts.myrepo.com helm repo update helm install myapp myrepo/mychart
Bhelm install myapp myrepo/mychart helm repo add myrepo https://charts.myrepo.com helm repo update
Chelm repo update helm repo add myrepo https://charts.myrepo.com helm install myapp myrepo/mychart
Dhelm repo add myrepo https://charts.myrepo.com helm install myapp myrepo/mychart helm repo update
Step-by-Step Solution
Solution:
  1. Step 1: Add the repo first

    Before installing, add the repo so Helm knows where to find charts.
  2. Step 2: Update repo indexes

    Run helm repo update to get latest chart info.
  3. Step 3: Install the chart

    Now install the chart using the repo/chart syntax.
  4. Final Answer:

    helm repo add myrepo https://charts.myrepo.com helm repo update helm install myapp myrepo/mychart -> Option A
  5. Quick Check:

    Correct automation order = Add, update, install [OK]
Quick Trick: Add and update repo before installing charts in scripts [OK]
Common Mistakes:
  • Installing before adding repo
  • Updating after install
  • Skipping repo update

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes