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")

另请参阅

由 spf13/cobra 于 2024 年 1 月 24 日自动生成