舵
舵
Kubernetes 的 Helm 包管理器。
概述
Kubernetes 包管理器
Helm 的常见操作
- helm 搜索:搜索图表
- helm 拉取:将图表下载到本地目录以查看
- helm 安装:将图表上传到 Kubernetes
- helm 列表:列出图表的发布版本
环境变量
名称 | 描述 |
---|---|
$HELM_CACHE_HOME | 设置用于存储缓存文件的备用位置。 |
$HELM_CONFIG_HOME | 设置用于存储 Helm 配置的备用位置。 |
$HELM_DATA_HOME | 设置用于存储 Helm 数据的备用位置。 |
$HELM_DEBUG | 指示 Helm 是否以调试模式运行 |
$HELM_DRIVER | 设置后端存储驱动程序。值包括:configmap、secret、memory、sql。 |
$HELM_DRIVER_SQL_CONNECTION_STRING | 设置 SQL 存储驱动程序应使用的连接字符串。 |
$HELM_MAX_HISTORY | 设置 Helm 发布历史记录的最大数量。 |
$HELM_NAMESPACE | 设置用于 Helm 操作的命名空间。 |
$HELM_NO_PLUGINS | 禁用插件。将 HELM_NO_PLUGINS=1 设置为禁用插件。 |
$HELM_PLUGINS | 设置插件目录的路径 |
$HELM_REGISTRY_CONFIG | 设置注册表配置文件的路径。 |
$HELM_REPOSITORY_CACHE | 设置仓库缓存目录的路径 |
$HELM_REPOSITORY_CONFIG | 设置仓库文件的路径。 |
$KUBECONFIG | 设置备用 Kubernetes 配置文件(默认值为“~/.kube/config”) |
$HELM_KUBEAPISERVER | 设置用于身份验证的 Kubernetes API 服务器端点 |
$HELM_KUBECAFILE | 设置 Kubernetes 证书颁发机构文件。 |
$HELM_KUBEASGROUPS | 设置用于使用逗号分隔列表进行模拟的组。 |
$HELM_KUBEASUSER | 设置用于模拟操作的用户名。 |
$HELM_KUBECONTEXT | 设置 kubeconfig 上下文的名称。 |
$HELM_KUBETOKEN | 设置用于身份验证的承载者 KubeToken。 |
$HELM_KUBEINSECURE_SKIP_TLS_VERIFY | 指示是否应跳过 Kubernetes API 服务器的证书验证(不安全) |
$HELM_KUBETLS_SERVER_NAME | 设置用于验证 Kubernetes API 服务器证书的服务器名称 |
$HELM_BURST_LIMIT | 在服务器包含大量 CRD 时设置默认突发限制(默认值为 100,-1 表示禁用) |
$HELM_QPS | 在大量调用超过更高突发值的选项的情况下设置每秒查询次数 |
Helm 根据以下配置顺序存储缓存、配置和数据
- 如果设置了 HELM_*_HOME 环境变量,则将使用它
- 否则,在支持 XDG 基本目录规范的系统上,将使用 XDG 变量
- 如果没有设置其他位置,将根据操作系统使用默认位置
默认情况下,默认目录取决于操作系统。默认值列在下面
操作系统 | 缓存路径 | 配置路径 | 数据路径 |
---|---|---|---|
Linux | $HOME/.cache/helm | $HOME/.config/helm | $HOME/.local/share/helm |
macOS | $HOME/Library/Caches/helm | $HOME/Library/Preferences/helm | $HOME/Library/helm |
Windows | %TEMP%\helm | %APPDATA%\helm | %APPDATA%\helm |
选项
--burst-limit int client-side default throttling limit (default 100)
--debug enable verbose output
-h, --help help for helm
--kube-apiserver string the address and the port for the Kubernetes API server
--kube-as-group stringArray group to impersonate for the operation, this flag can be repeated to specify multiple groups.
--kube-as-user string username to impersonate for the operation
--kube-ca-file string the certificate authority file for the Kubernetes API server connection
--kube-context string name of the kubeconfig context to use
--kube-insecure-skip-tls-verify if true, the Kubernetes API server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--kube-tls-server-name string server name to use for Kubernetes API server certificate validation. If it is not provided, the hostname used to contact the server is used
--kube-token string bearer token used for authentication
--kubeconfig string path to the kubeconfig file
-n, --namespace string namespace scope for this request
--qps float32 queries per second used when communicating with the Kubernetes API, not including bursting
--registry-config string path to the registry config file (default "~/.config/helm/registry/config.json")
--repository-cache string path to the file containing cached repository indexes (default "~/.cache/helm/repository")
--repository-config string path to the file containing repository names and URLs (default "~/.config/helm/repositories.yaml")
另请参阅
- helm 自动完成 - 为指定外壳生成自动完成脚本
- helm 创建 - 使用给定名称创建一个新图表
- helm 依赖项 - 管理图表的依赖项
- helm 环境 - helm 客户端环境信息
- helm 获取 - 下载命名发布版本的扩展信息
- helm 历史记录 - 获取发布历史记录
- helm 安装 - 安装图表
- helm 规则检查 - 检查图表是否存在可能的问题
- helm 列表 - 列出发布版本
- helm 打包 - 将图表目录打包成图表存档
- helm 插件 - 安装、列出或卸载 Helm 插件
- helm 拉取 - 从仓库下载图表,并(可选)在本地目录中解压缩
- helm 推送 - 将图表推送到远程
- helm 注册表 - 登录或注销注册表
- helm 仓库 - 添加、列出、删除、更新和索引图表仓库
- helm 回滚 - 将发布版本回滚到以前的版本
- helm 搜索 - 在图表中搜索关键字
- helm 显示 - 显示图表的信息
- helm 状态 - 显示命名发布版本的状态
- helm 模板 - 本地渲染模板
- helm 测试 - 运行发布版本的测试
- helm 卸载 - 卸载发布版本
- helm 升级 - 升级发布版本
- helm 验证 - 验证给定路径处的图表是否已签名且有效
- helm 版本 - 打印客户端版本信息