Skip to main content
In this guide, you will explore the fundamentals of Helm—the Kubernetes package manager—and learn how to use its command-line interface (CLI) for various tasks. Every operation demonstrated here is executed through the Helm CLI.

Viewing General Help

Running the helm command without arguments, or with the --help flag, displays useful information about available commands and their usage. For example:
This output serves as a quick reference for determining the proper command for a specific task. For example, if you’re trying to recover from a failed upgrade, this help message reminds you that the correct command is helm rollback rather than a non-existent helm restore.

Exploring Subcommands: Repository Management

Helm offers detailed assistance for managing chart repositories through subcommands. To view all available commands for repository management, execute:
For example, if you want to update your local chart cache, you can review the detailed help for that subcommand:

Deploying a WordPress Website on Kubernetes

Helm significantly simplifies the deployment of applications in Kubernetes. In this section, you will deploy a WordPress website using a prepackaged Helm chart available on online repositories like Artifact Hub. Look for official or verified publisher badges to identify high-quality charts.

Steps to Deploy

  1. Begin by adding the Bitnami chart repository to your local Helm configuration
Begin by adding the Bitnami chart repository to your local Helm configuration.
  1. With the repository added, deploy the WordPress chart to your Kubernetes cluster
With the repository added, deploy the WordPress chart to your Kubernetes cluster.
This output confirms that your WordPress application has been successfully deployed as a release named my-release.
  1. To view all installed releases, use the helm list command
To view all installed releases, use the helm list command.
  1. When you need to remove the WordPress deployment, Helm allows you to easily c…
When you need to remove the WordPress deployment, Helm allows you to easily clean up all associated Kubernetes objects.

Managing Helm Repositories

Helm repositories store charts and their associated metadata. In addition to adding repositories with helm repo add, you can list and update your chart repositories as needed.
  • List Current Repositories:
  • Update Repositories:
    Similar to a system package manager, refresh the local cache of repository information with:
This ensures you have the most up-to-date chart information from each repository.

Advanced Chart Searches

Helm supports powerful search capabilities to help you find the right chart. You can search for charts hosted on the Artifact Hub or within your local repositories.
  • Search in Artifact Hub:
  • Search Across All Locations:
Using these search options, you can review important chart details such as version numbers and descriptions before installation.

Conclusion

Helm streamlines the deployment and management of applications on Kubernetes. Whether you’re deploying a WordPress website or another application, the Helm CLI offers a powerful and user-friendly set of commands to add repositories, install charts, monitor releases, and remove deployments—all from the command line. Now that you understand these fundamental operations, try them out in your own environment. Happy Helming!

Watch Video