← 返回命令列表

Linux command

helm 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install chart

helm install [release-name] [chart]

Install with custom values

helm install [release-name] [chart] -f [values.yaml]

Add repository

helm repo add [name] [url]

Update

helm repo update

List releases

helm list

Upgrade release

helm upgrade [release-name] [chart]

Uninstall release

helm uninstall [release-name]

Show configurable values

helm show values [chart]

说明

Helm is the package manager for Kubernetes. It manages charts, which are packages of pre-configured Kubernetes resources. Charts define, install, and upgrade complex Kubernetes applications. Helm simplifies application deployment, versioning, and upgrades. It uses Go templating to customize deployments for different environments. Values files and --set flags override chart defaults for environment-specific configuration.

参数

install _release_ _chart_
Install a chart as a named release.
upgrade _release_ _chart_
Upgrade a release to a new chart version or values.
uninstall _release_
Uninstall a release and its resources.
list
List deployed releases.
repo add _name_ _url_
Add a chart repository.
repo update
Update chart repository indexes.
search repo _keyword_
Search repositories for charts.
show values _chart_
Show configurable values for a chart.
template _release_ _chart_
Render chart templates locally without installing.
rollback _release_ _revision_
Roll back a release to a previous revision.
-n, --namespace _NS_
Kubernetes namespace for the operation.
-f, --values _FILE_
Specify values file for chart configuration.
--set _key=value_
Set individual values on the command line.
--dry-run
Simulate an install/upgrade without applying changes.
--wait
Wait until all resources are ready before marking release as successful.

FAQ

What is the helm command used for?

Helm is the package manager for Kubernetes. It manages charts, which are packages of pre-configured Kubernetes resources. Charts define, install, and upgrade complex Kubernetes applications. Helm simplifies application deployment, versioning, and upgrades. It uses Go templating to customize deployments for different environments. Values files and --set flags override chart defaults for environment-specific configuration.

How do I run a basic helm example?

Run `helm install [release-name] [chart]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does install _release_ _chart_ do in helm?

Install a chart as a named release.