1. Get Ready
First off, make sure you’ve got Kubernetes set up and kubectl
working on your machine. Also, you’ll need a Unix-like OS (like Linux or macOS) or Windows with WSL (Windows Subsystem for Linux).
2. Install Helm
On macOS:
If you’re on a Mac and use Homebrew, the easiest way to install Helm is:
brew install helm
On Linux:
For Linux users, you can use curl
to grab the latest version of Helm and install it:
curl -fsSL https://get.helm.sh/helm-v3.11.2-linux-amd64.tar.gz | tar xz
sudo mv linux-amd64/helm /usr/local/bin/helm
Just make sure to replace v3.11.2
with the latest version number if there’s a newer one.
On Windows:
If you’re using Windows and have Chocolatey installed, you can run:
choco install kubernetes-helm
Alternatively, you can download the Helm binary from the Helm GitHub releases page, unzip it, and add it to your PATH.
3. Check It’s Working
To confirm that Helm is installed, you can run:
helm version
This should show you the version of Helm you’ve installed.
4. Set Up Helm Repositories
With Helm v3, you don’t need to initialize it like you did with v2. Instead, you might want to add some repositories to find charts:
helm repo add stable https://charts.helm.sh/stable helm repo update
5. Start Using Helm
Search for Charts: To find charts you can use, run:
helm search repo [search-term]
Install a Chart: To install a chart, use:
helm install [release-name] [chart-name]
For example:
helm install my-nginx stable/nginx
List Installed Charts: To see what you’ve already installed:
helm list
Upgrade a Release: If you need to update an existing release:
helm upgrade [release-name] [chart-name]
Uninstall a Release: To remove a release:
helm uninstall [release-name]
And that’s it! You’re all set to start managing your Kubernetes apps with Helm. If you hit any snags or have more questions, just let me know!