头盔无法检索搜索结果

时间:2020-07-01 10:00:06

标签: kubernetes kubernetes-helm

我已配置稳定的仓库

open

我知道我可以表演

▶ helm repo list
NAME        URL
stable      https://kubernetes-charts.storage.googleapis.com

那为什么下面的命令不检索任何结果?

helm install stable/jenkins

使用

▶ helm search repo stable/jenkins
No results found
~
▶ helm search repo jenkins
No results found

编辑:即使在更新后

▶ helm version --tls
Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.8", GitCommit:"145206680c1d5c28e3fcf30d6f596f0ba84fcb47", GitTreeState:"clean"}

我什至试图▶ helm repo update Hang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "flagger" chart repository ...Successfully got an update from the "incubator" chart repository ...Successfully got an update from the "stakater" chart repository ...Successfully got an update from the "stable" chart repository ...Successfully got an update from the "bitnami" chart repository Update Complete. ⎈ Happy Helming!⎈ ~/ 40m ▶ helm search repo stable/jenkins No results found remove再次退回add回购;结果相同。

2 个答案:

答案 0 :(得分:2)

您正在运行helm search repo stable/jenkins,这是掌舵3语法。

查看有关 helm3 的帮助:

$ helm search --help

Search provides the ability to search for Helm charts in the various places
they can be stored including the Helm Hub and repositories you have added. Use
search subcommands to search different locations for charts.

Usage:
  helm search [command]

Available Commands:
  hub         search for charts in the Helm Hub or an instance of Monocular
  repo        search repositories for a keyword in charts

但是在您提出问题时,您写道:

头盔版本--tls
客户端:&version.Version {SemVer:“ v2.9.1 ...

这意味着您正在使用头盔2 。现在,我们来看看 helm 2 帮助命令:

$ helm search --help
...
To look for charts with a particular name (such as stable/mysql), try
searching using vertical tabs (\v). Vertical tabs are used as the delimiter
between search fields. For example:

    helm search --regexp '\vstable/mysql\v'

To search for charts using common keywords (such as "database" or
"key-value store"), use
    helm search database
or
    helm search key-value store

Usage:
  helm search [keyword] [flags]

TLDR:使用:

helm search stable/jenkins

如果您还有其他问题,请告诉我。我很乐意提供帮助。

答案 1 :(得分:1)

尝试更新您的存储库:

$ helm repo add stable https://kubernetes-charts.storage.googleapis.com

$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈ 

$ helm search repo stable/jenkins
NAME            CHART VERSION   APP VERSION DESCRIPTION                                       
stable/jenkins  2.1.0           lts         Open source continuous integration server. It s...