Helm 套件

helm 套件

將圖表目錄打包成圖表壓縮檔

概要

此命令會將圖表打包成版本化的圖表壓縮檔。如果指定了路徑,它將在該路徑中尋找圖表(必須包含 Chart.yaml 檔案),然後將該目錄打包。

版本化的圖表壓縮檔由 Helm 套件儲存庫使用。

若要簽署圖表,請使用 '--sign' 旗標。在大多數情況下,您也應該提供 '--keyring path/to/secret/keys' 和 '--key keyname'。

$ helm package --sign ./mychart --key mykey --keyring ~/.gnupg/secring.gpg

如果未指定 '--keyring',Helm 通常預設為公開金鑰環,除非您的環境另有配置。

helm package [CHART_PATH] [...] [flags]

選項

      --app-version string       set the appVersion on the chart to this version
  -u, --dependency-update        update dependencies from "Chart.yaml" to dir "charts/" before packaging
  -d, --destination string       location to write the chart. (default ".")
  -h, --help                     help for package
      --key string               name of the key to use when signing. Used if --sign is true
      --keyring string           location of a public keyring (default "~/.gnupg/pubring.gpg")
      --passphrase-file string   location of a file which contains the passphrase for the signing key. Use "-" in order to read from stdin.
      --sign                     use a PGP private key to sign this package
      --version string           set the version on the chart to this semver version

從父命令繼承的選項

      --burst-limit int                 client-side default throttling limit (default 100)
      --debug                           enable verbose output
      --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 - 適用於 Kubernetes 的 Helm 套件管理器。
由 spf13/cobra 於 2024 年 1 月 24 日自動產生