Helm for AKS Cheatsheet: Unlock the Power of Kubernetes with Helm!
Introduction
Helm is a powerful package manager for Kubernetes that allows you to quickly and easily deploy applications to your AKS cluster. Helm charts are easy to use, and provide a great way to manage and deploy applications in your AKS cluster. This cheatsheet will provide you with the essential commands and tips you need to get the most out of Helm and AKS.
Table of Contents
Section 1: Installing Helm
- helm init
- helm repo add
- helm repo update
- helm search
- helm install
- helm upgrade
- helm uninstall
- helm list
- helm status
- helm get
Section 2: Working with Helm
- helm create
- helm package
- helm lint
- helm generate
- helm template
- helm install (from file)
- helm upgrade (from file)
- helm rollback
- helm debug
- helm exec
Section 3: Working with Kubernetes
- kubectl version
- kubectl get nodes
- kubectl get pods
- kubectl get services
- kubectl get deployments
- kubectl get replicasets
- kubectl get secrets
- kubectl get configmaps
- kubectl get persistentvolumes
- kubectl get persistentvolumeclaims
Section 4: Working with AKS
- az aks list
- az aks nodepool list
- az aks nodepool show
- az aks nodepool list-sizes
- az aks nodepool list-images
- az aks get-versions
- az aks get-upgrades
- az aks list-locations
- az aks list-resource-groups
- az aks list-resource-providers
Section 1: Installing Helm
- helm init
Description: Initializes Helm on your cluster.
- helm repo add
Description: Adds a new Helm repository.
helm repo add <repo-name> <repo-url>
- helm repo update
Description: Updates information from all configured repositories.
- helm search
Description: Searches for a chart in the repositories.
- helm install
Description: Installs a Helm chart on your cluster.
helm install <chart-name>
- helm upgrade
Description: Upgrades an existing release to a new chart version.
helm upgrade <release-name> <chart-name>
- helm uninstall
Description: Removes a Helm release from your cluster.
helm uninstall <release-name>
- helm list
Description: Lists all installed Helm releases.
- helm status
Description: Provides detailed status for a specific release.
helm status <release-name>
- helm get
Description: Retrieves configuration or information for a release.
Section 2: Working with Helm
- helm create
Description: Generates a new chart scaffold.
- helm package
Description: Packages a chart directory into a chart archive.
helm package <chart-name>
- helm lint
Description: Examines a chart for possible issues.
- helm generate
Description: Generates a chart (if applicable, per your workflow).
helm generate <chart-name>
- helm template
Description: Renders chart templates locally.
helm template <chart-name>
- helm install (from file)
Description: Installs a Helm chart using custom values from a file.
helm install <chart-name> --file <file-name>
- helm upgrade (from file)
Description: Upgrades a chart release with values from a file.
helm upgrade <release-name> --file <file-name>
- helm rollback
Description: Rolls back a release to a previous revision.
helm rollback <release-name> <revision-number>
- helm debug
Description: Provides debugging information for a chart.
- helm exec
Description: Executes a command in context of a Helm chart.
helm exec <chart-name> -- <command>
Section 3: Working with Kubernetes
- kubectl version
Description: Displays the Kubernetes client and server versions.
- kubectl get nodes
Description: Lists all nodes in your cluster.
- kubectl get pods
Description: Lists all pods running on the cluster.
- kubectl get services
Description: Lists all services deployed in the cluster.
- kubectl get deployments
Description: Lists all deployments.
- kubectl get replicasets
Description: Lists all replica sets.
- kubectl get secrets
Description: Retrieves secrets from the cluster.
- kubectl get configmaps
Description: Lists the config maps.
- kubectl get persistentvolumes
Description: Lists persistent volumes.
kubectl get persistentvolumes
- kubectl get persistentvolumeclaims
Description: Lists persistent volume claims.
kubectl get persistentvolumeclaims
Section 4: Working with AKS
- az aks list
Description: Lists all AKS clusters in your subscription.
- az aks nodepool list
Description: Lists node pools of a specific cluster.
az aks nodepool list --resource-group <rg> --cluster-name <cluster>
- az aks nodepool show
Description: Shows details for a specific node pool.
az aks nodepool show --resource-group <rg> --cluster-name <cluster> --name <nodepool-name>
- az aks nodepool list-sizes
Description: Displays available VM sizes for node pools.
az aks nodepool list-sizes --resource-group <rg> --cluster-name <cluster>
- az aks nodepool list-images
Description: Lists available node images.
az aks nodepool list-images --resource-group <rg> --cluster-name <cluster>
- az aks get-versions
Description: Retrieves available Kubernetes versions for creating/upgrading a cluster.
az aks get-versions --location <location>
- az aks get-upgrades
Description: Lists available upgrades for your cluster.
az aks get-upgrades --resource-group <rg> --name <cluster>
- az aks list-locations
Description: Lists Azure locations where AKS is available.
- az aks list-resource-groups
Description: Lists resource groups used by AKS.
az aks list-resource-groups
- az aks list-resource-providers
Description: Lists resource providers for AKS.
az aks list-resource-providers
Conclusion
Helm is a powerful package manager for Kubernetes that makes it easy to deploy applications to your AKS cluster. With this cheatsheet, you now have the essential commands and tips you need to get the most out of Helm and AKS. So go ahead and unlock the power of Kubernetes with Helm!