This article provides a step-by-step guide for installing and validating Helm on Ubuntu.
In this lesson, we will walk through the steps required for the Helm installation lab, covering the process from identifying your operating system to validating your Helm installation.
Refer to the official Helm documentation for the most accurate instructions. For Ubuntu, follow these commands. Depending on your package manager, use one of the methods below:
Using Chocolatey:
(For environments where Chocolatey is available)
Copy
Ask AI
choco install kubernetes-helm
Using Scoop:
(For environments where Scoop is installed)
Copy
Ask AI
scoop install helm
Using apt (Preferred for Ubuntu):
Copy and execute the commands in your terminal to add the Helm repository, update your package list, and install Helm:
When installing Helm from the repository using the apt command, you should see an output similar to the following:
Copy
Ask AI
root@controlplane ~ ➜ sudo apt-get install helmReading package lists... DoneBuilding dependency treeReading state information... DoneThe following NEW packages will be installed: helm0 upgraded, 1 newly installed, 0 to remove and 47 not upgraded.Need to get 14.0 MB of archives.After this operation, 46.3 MB of additional disk space will be used.Get:1 https://baltocdn.com/helm/stable/debian all/main amd64 helm 3.9.2-1 [14.0 MB]Fetched 14.0 MB in 0s (51.8 MB/s)debconf: delaying package configuration, since apt-utils is not installedSelecting previously unselected package helm.(Reading database ... 123456 files and directories currently installed.)Preparing to unpack .../helm_3.9.2-1_amd64.deb ...Unpacking helm (3.9.2-1) ...Setting up helm (3.9.2-1) ...Processing triggers for man-db (2.8.3-2ubuntu0.1) ...root@controlplane ~ ➜
You can explore Helm’s available commands and options by invoking the help command:
Copy
Ask AI
Usage:helm [command]Available Commands: completion generate autocompletion scripts for the specified shell create create a new chart with the given name dependency manage a chart's dependencies env helm client environment information get download extended information of a named release help Help about any command history fetch release history install install a chart lint examine a chart for possible issues list list releases package package a chart directory into a chart archive plugin install, list, or uninstall Helm plugins pull download a chart from a repository and (optionally) unpack it in local directory push push a chart to remote registry login to or logout from a registry repo add, list, remove, update, and index chart repositories rollback roll back a release to a previous revision search search for a keyword in charts show show information of a chart status display the status of the named release template locally render templates test run tests for a release uninstall uninstall a release upgrade upgrade a release
Remember to use the “env” command in lowercase when checking the Helm client environment information.
For troubleshooting and deeper inspection, you can enable verbose output by adding the --debug flag when executing Helm commands. An excerpt from the Helm help output shows available flags:
Copy
Ask AI
Flags: --debug enable verbose output -h, --help help for helm --kube-apiserver string the address and the port for the Kubernetes API server --kube-as-group stringArray group to impersonate for the operation, this flag can be repeated to specify multiple groups. --kube-as-user string username to impersonate for the operation --kube-ca-file string path to the certificate authority file for the Kubernetes API server connection --kube-context string name of the kubeconfig context to use --kube-token string bearer token used for authentication --kubeconfig string path to the kubeconfig file
Using the --debug flag will provide more detailed output, which is useful for diagnosing any issues during Helm operations.
This concludes the Helm installation lab. You now have Helm installed and verified on your Ubuntu machine, with the ability to leverage its extensive command set for managing Kubernetes deployments effectively.