Helm -Commands
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Link : Getting Started with Helm Chart | Jhooq
Helm is a package manager for Kubernetes that simplifies the deployment and management of applications. It uses charts, which are collections of pre-configured Kubernetes resources, to define, package, and install applications on a Kubernetes cluster. Here's a list of commonly used Helm commands:
Initialize Helm:
helm init
orhelm repo add stable https://charts.helm.sh/stable
: Initializes Helm on your cluster and adds the official Helm stable repository (deprecated since Helm v3).
Managing Repositories:
helm repo add <name> <url>
: Adds a new repository.helm repo list
: Lists the available repositories.helm repo update
: Updates the local cache of available charts from the configured repositories.
Search and Inspect Charts:
helm search <keyword>
: Searches for charts in the configured repositories.helm inspect <chart>
: Displays information about a chart.
Installing and Upgrading Charts:
helm install <release-name> <chart>
: Installs a chart as a new release.helm upgrade <release-name> <chart>
: Upgrades an existing release with a new chart version.helm rollback <release-name> <revision>
: Rolls back a release to a previous version.
Managing Releases:
helm list
: Lists all releases on the cluster.helm status <release-name>
: Displays the status of a release.helm get <value> <release-name>
: Retrieves specific information about a release.helm delete <release-name>
: Deletes a release.
Values and Overrides:
helm install -f <values-file.yaml> <release-name> <chart>
: Installs a chart with values from a specified file.helm install --set <key>=<value> <release-name> <chart>
: Sets a value during chart installation.helm upgrade -f <values-file.yaml> <release-name> <chart>
: Upgrades a release with new values.
Package Charts:
helm package <chart-dir>
: Packages a chart directory into a distributable tarball.
Linting and Testing Charts:
helm lint <chart>
: Lints a chart for potential issues.helm test <release-name>
: Runs tests defined in a chart.
Plugin Management:
helm plugin install <plugin-name>
: Installs a Helm plugin.helm plugin list
: Lists installed Helm plugins.
Repository Maintenance:
helm repo index .
: Creates or updates anindex.yaml
file for a chart repository.helm repo remove <name>
: Removes a repository.
Updating Helm:
- Helm v2:
helm init --upgrade
: Upgrades Helm and the Tiller server (deprecated since Helm v3). - Helm v3: Helm v3 doesn't have a separate Tiller component.
- Helm v2:
Remember
that command usage and syntax may vary based on the Helm version you
are using. It's recommended to consult the official Helm documentation
or run helm --help
or helm <command> --help
for more detailed information about each command and its options.
Comments
Post a Comment