A. Lists available nginx charts from the stable repository
B. Shows an error: repository not found
C. Deletes the stable repository
D. Installs nginx chart automatically
Solution
Step 1: Add and update the stable repo
The commands add the stable repo and update the local repo list.
Step 2: Search for nginx chart in stable repo
The search command lists charts matching 'stable/nginx' from the updated repo.
Final Answer:
Lists available nginx charts from the stable repository -> Option A
Quick Check:
helm search repo shows charts [OK]
Hint: Add repo, update, then search to list charts [OK]
Common Mistakes:
Expecting automatic install after search
Thinking repo is deleted
Assuming error without adding repo
4. You ran helm repo add myrepo https://example.com/charts but get an error saying "repository name (myrepo) already exists". What should you do to fix this?
medium
A. Remove the existing repo with helm repo remove myrepo before adding again
B. Restart the Kubernetes cluster
C. Change the URL to a different one
D. Use helm repo update to refresh the repo list
Solution
Step 1: Understand the error meaning
The error means a repo named 'myrepo' already exists locally.
Step 2: Remove existing repo before re-adding
Use helm repo remove myrepo to delete the old repo, then add again.
Final Answer:
Remove the existing repo with helm repo remove myrepo before adding again -> Option A
Quick Check:
Remove duplicate repo before add [OK]
Hint: Remove existing repo before adding same name [OK]
Common Mistakes:
Just running update without removing
Changing URL without removing repo
Restarting cluster unnecessarily
5. You want to add two Helm chart repositories, repo1 and repo2, then update and search for a chart named app in both. Which sequence of commands correctly achieves this?