Cloud / HELM Interview Questions
How do you install, upgrade, and rollback a Helm chart with real examples?
Helm provides intuitive commands for the complete application lifecycle. Here are concrete examples using the popular Bitnami Nginx chart:
Installation: helm install my-web bitnami/nginx --namespace web-apps --create-namespace --set service.type=LoadBalancer,replicaCount=3. This installs a release named "my-web" using the bitnami/nginx chart. Helm creates revision 1.
Upgrade with values file: Create custom-values.yaml then run helm upgrade my-web bitnami/nginx -f custom-values.yaml --namespace web-apps. This creates revision 2, applies changes, and only updates modified resources using three-way strategic merge.
Rollback: helm history my-web -n web-apps shows revisions. helm rollback my-web 1 -n web-apps reverts to revision 1, creating a new revision (3) that reproduces revision 1's manifests.
Uninstall: helm uninstall my-web -n web-apps removes all resources. Add --keep-history to retain records.
Upgrade with --install: helm upgrade --install my-web bitnami/nginx -n web-apps performs install if release doesn't exist, upgrade if it does - ideal for CI/CD.
More Related questions...