miniguide

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

  1. helm init
  2. helm repo add
  3. helm repo update
  4. helm search
  5. helm install
  6. helm upgrade
  7. helm uninstall
  8. helm list
  9. helm status
  10. helm get

Section 2: Working with Helm

  1. helm create
  2. helm package
  3. helm lint
  4. helm generate
  5. helm template
  6. helm install (from file)
  7. helm upgrade (from file)
  8. helm rollback
  9. helm debug
  10. helm exec

Section 3: Working with Kubernetes

  1. kubectl version
  2. kubectl get nodes
  3. kubectl get pods
  4. kubectl get services
  5. kubectl get deployments
  6. kubectl get replicasets
  7. kubectl get secrets
  8. kubectl get configmaps
  9. kubectl get persistentvolumes
  10. kubectl get persistentvolumeclaims

Section 4: Working with AKS

  1. az aks list
  2. az aks nodepool list
  3. az aks nodepool show
  4. az aks nodepool list-sizes
  5. az aks nodepool list-images
  6. az aks get-versions
  7. az aks get-upgrades
  8. az aks list-locations
  9. az aks list-resource-groups
  10. az aks list-resource-providers

Section 1: Installing Helm

  1. helm init
    Description: Initializes Helm on your cluster.
    helm init
    

  1. helm repo add
    Description: Adds a new Helm repository.
    helm repo add <repo-name> <repo-url>
    

  1. helm repo update
    Description: Updates information from all configured repositories.
    helm repo update
    

  1. helm search
    Description: Searches for a chart in the repositories.
    helm search <chart-name>
    

  1. helm install
    Description: Installs a Helm chart on your cluster.
    helm install <chart-name>
    

  1. helm upgrade
    Description: Upgrades an existing release to a new chart version.
    helm upgrade <release-name> <chart-name>
    

  1. helm uninstall
    Description: Removes a Helm release from your cluster.
    helm uninstall <release-name>
    

  1. helm list
    Description: Lists all installed Helm releases.
    helm list
    

  1. helm status
    Description: Provides detailed status for a specific release.
    helm status <release-name>
    

  1. helm get
    Description: Retrieves configuration or information for a release.
    helm get <release-name>
    

Section 2: Working with Helm

  1. helm create
    Description: Generates a new chart scaffold.
    helm create <chart-name>
    

  1. helm package
    Description: Packages a chart directory into a chart archive.
    helm package <chart-name>
    

  1. helm lint
    Description: Examines a chart for possible issues.
    helm lint <chart-name>
    

  1. helm generate
    Description: Generates a chart (if applicable, per your workflow).
    helm generate <chart-name>
    

  1. helm template
    Description: Renders chart templates locally.
    helm template <chart-name>
    

  1. helm install (from file)
    Description: Installs a Helm chart using custom values from a file.
    helm install <chart-name> --file <file-name>
    

  1. helm upgrade (from file)
    Description: Upgrades a chart release with values from a file.
    helm upgrade <release-name> --file <file-name>
    

  1. helm rollback
    Description: Rolls back a release to a previous revision.
    helm rollback <release-name> <revision-number>
    

  1. helm debug
    Description: Provides debugging information for a chart.
    helm debug <chart-name>
    

  1. helm exec
    Description: Executes a command in context of a Helm chart.
    helm exec <chart-name> -- <command>
    

Section 3: Working with Kubernetes

  1. kubectl version
    Description: Displays the Kubernetes client and server versions.
    kubectl version
    

  1. kubectl get nodes
    Description: Lists all nodes in your cluster.
    kubectl get nodes
    

  1. kubectl get pods
    Description: Lists all pods running on the cluster.
    kubectl get pods
    

  1. kubectl get services
    Description: Lists all services deployed in the cluster.
    kubectl get services
    

  1. kubectl get deployments
    Description: Lists all deployments.
    kubectl get deployments
    

  1. kubectl get replicasets
    Description: Lists all replica sets.
    kubectl get replicasets
    

  1. kubectl get secrets
    Description: Retrieves secrets from the cluster.
    kubectl get secrets
    

  1. kubectl get configmaps
    Description: Lists the config maps.
    kubectl get configmaps
    

  1. kubectl get persistentvolumes
    Description: Lists persistent volumes.
    kubectl get persistentvolumes
    

  1. kubectl get persistentvolumeclaims
    Description: Lists persistent volume claims.
    kubectl get persistentvolumeclaims
    

Section 4: Working with AKS

  1. az aks list
    Description: Lists all AKS clusters in your subscription.
    az aks list
    

  1. az aks nodepool list
    Description: Lists node pools of a specific cluster.
    az aks nodepool list --resource-group <rg> --cluster-name <cluster>
    

  1. 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>
    

  1. az aks nodepool list-sizes
    Description: Displays available VM sizes for node pools.
    az aks nodepool list-sizes --resource-group <rg> --cluster-name <cluster>
    

  1. az aks nodepool list-images
    Description: Lists available node images.
    az aks nodepool list-images --resource-group <rg> --cluster-name <cluster>
    

  1. az aks get-versions
    Description: Retrieves available Kubernetes versions for creating/upgrading a cluster.
    az aks get-versions --location <location>
    

  1. az aks get-upgrades
    Description: Lists available upgrades for your cluster.
    az aks get-upgrades --resource-group <rg> --name <cluster>
    

  1. az aks list-locations
    Description: Lists Azure locations where AKS is available.
    az aks list-locations
    

  1. az aks list-resource-groups
    Description: Lists resource groups used by AKS.
    az aks list-resource-groups
    

  1. 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!