Linux command
helm-install 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install a chart
helm install [release-name] [chart]
Install from repository
helm install [my-nginx] bitnami/nginx
Install with custom values file
helm install [release] [chart] -f [values.yaml]
Install with inline value
helm install [release] [chart] --set [key]=[value]
Install in specific namespace
helm install [release] [chart] -n [namespace]
Install and wait for pods
helm install [release] [chart] --wait
Dry run without installing
helm install [release] [chart] --dry-run
说明
helm install deploys a Helm chart to a Kubernetes cluster, creating a new release. A chart contains all resource definitions needed to run an application. Helm tracks releases for easy upgrades with helm upgrade and rollbacks with helm rollback. Use --wait to wait for all pods to be ready before completing.
参数
- -f, --values _file_
- Custom values YAML file.
- --set _key_=_value_
- Override values inline.
- -n, --namespace _namespace_
- Target namespace.
- --wait
- Wait for pods to be ready.
- --timeout _duration_
- Timeout for commands (default 5m0s).
- --dry-run
- Simulate without installing.
- --create-namespace
- Create namespace if missing.
FAQ
What is the helm-install command used for?
helm install deploys a Helm chart to a Kubernetes cluster, creating a new release. A chart contains all resource definitions needed to run an application. Helm tracks releases for easy upgrades with helm upgrade and rollbacks with helm rollback. Use --wait to wait for all pods to be ready before completing.
How do I run a basic helm-install example?
Run `helm install [release-name] [chart]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f, --values _file_ do in helm-install?
Custom values YAML file.