Helm 列表

helm 列表

列出發行版本

概要

此命令會列出指定命名空間的所有發行版本(如果未指定命名空間,則使用目前的命名空間上下文)。

預設情況下,它只會列出已部署或失敗的發行版本。像 '--uninstalled' 和 '--all' 這樣的旗標會改變這種行為。這些旗標可以組合使用:'--uninstalled --failed'。

預設情況下,項目會按字母順序排序。使用 '-d' 旗標按發行日期排序。

如果提供了 '--filter' 旗標,它將被視為篩選器。篩選器是套用於發行版本列表的正規表示式(與 Perl 相容)。只有符合篩選器的項目才會被傳回。

$ helm list --filter 'ara[a-z]+'
NAME                UPDATED                                  CHART
maudlin-arachnid    2020-06-18 14:17:46.125134977 +0000 UTC  alpine-0.1.0

如果找不到結果,'helm list' 將會以 0 退出,但沒有輸出(或者在沒有 '-q' 旗標的情況下,只有標題)。

預設情況下,最多可以傳回 256 個項目。要限制此數量,請使用 '--max' 旗標。將 '--max' 設為 0 不會傳回所有結果。相反地,它會傳回伺服器的預設值,該預設值可能遠高於 256。將 '--max' 旗標與 '--offset' 旗標配對使用,您可以逐頁瀏覽結果。

helm list [flags]

選項

  -a, --all                  show all releases without any filter applied
  -A, --all-namespaces       list releases across all namespaces
  -d, --date                 sort by release date
      --deployed             show deployed releases. If no other is specified, this will be automatically enabled
      --failed               show failed releases
  -f, --filter string        a regular expression (Perl compatible). Any releases that match the expression will be included in the results
  -h, --help                 help for list
  -m, --max int              maximum number of releases to fetch (default 256)
      --no-headers           don't print headers when using the default output format
      --offset int           next release index in the list, used to offset from start value
  -o, --output format        prints the output in the specified format. Allowed values: table, json, yaml (default table)
      --pending              show pending releases
  -r, --reverse              reverse the sort order
  -l, --selector string      Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Works only for secret(default) and configmap storage backends.
  -q, --short                output short (quiet) listing format
      --superseded           show superseded releases
      --time-format string   format time using golang time formatter. Example: --time-format "2006-01-02 15:04:05Z0700"
      --uninstalled          show uninstalled releases (if 'helm uninstall --keep-history' was used)
      --uninstalling         show releases that are currently being uninstalled

從父命令繼承的選項

      --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 日自動產生