- https://github.com/helm/helm > Quickstart Guide > Helm Commands
- 3 way merge strategy
- Create and inspect a test chart with the following steps
helm create test
helm install --dry-run --debug --name myrelease ./test
// Helm 2...helm install --dry-run --debug myrelease ./test
// Helm 3...- Leave the
--dry-run --debug
options away to actually execute the command - check out the created resources with
kubectl get pods
,kubectl get deployments
andkubectl get svc
- create a port-forward using the podname
kubectl port-forward myrelease-test-... 8080:80
- press
CTRL+Z
and enterbg
andcurl 127.0.0.1:8080
to see the nginx response - Similarly you can also use
helm template ./test --set ingress.enabled=true
to check out how the template would look like with the given value - use
helm ls
to list up the installed releases
- Upgrade to LoadBalancer
helm upgrade --set service.type=LoadBalancer --install myrelease ./test
- Check for the state with
kubectl get svc
andkubectl describe svc myrelease-test
- Inspect and delete release
helm get myrelease
kubectl get secret
// Helm 3kubectl get configmap --namespace kube-system
// Helm 2helm delete myrelease
helm ls -all
helm delete myrelease --purge
// Purge only relevant for Helm 2
helm repo list
// No repositories are added by defaulthelm repo add stable https://kubernetes-charts.storage.googleapis.com
thehelm repo update
helm fetch stable/redis --untar
helm install stable/redis
https://github.com/helm/charts/tree/master/stable
helm repo update
// Works without explicitly adding any repos
- Initialize Helm Tiller with RBAC (Only Helm 2)
- Login to azure and login to the aks cluster see also
- Inspect and deploy the service account with
kubectl apply -f resources/helm-rbac.yaml
- Install Tiller with
helm init --service-account tiller --wait --upgrade
- Helm 2 topics
- When deploying using Helm 2, you should not do manual changes on the deployed resources since Helm only tracks changes done through the Helm CLI!
- Migrate from Helm 2 to Helm 3 with 2to3
https://www.katacoda.com/courses/kubernetes/helm-package-manager