【问题标题】:helm search not listing packages but installing in GKE kubernetes clusterhelm search 不列出软件包但安装在 GKE kubernetes 集群中
【发布时间】:2020-07-08 16:43:32
【问题描述】:

我在GKE Cluster 上安装了helm。安装没问题

$ helm version
version.BuildInfo{Version:"v3.2.4", GitCommit:"0ad800ef43d3b826f31a5ad8dfbb4fe05d143688", GitTreeState:"clean", GoVersion:"go1.13.12"}

我可以使用以下命令成功安装MySQL/MariaDB 使用helm

helm install stable/mysql
helm install  stable/mariadb

但是当我尝试搜索这些包时,我找不到包

$ helm search  hub mysql
No results found
$ helm search  hub mariadb
No results found

在通过运行helm search hub 列出公开可用的图表时,它给出了以下输出

$ helm search hub
NAME                    CHART VERSION   APP VERSION     DESCRIPTION
stable/hubot            1.0.1           3.3.2           Hubot chatbot for Slack
stable/eventrouter      0.3.0           0.3             A Helm chart for eventruter (https://github.com/heptiolab...
stable/mercure          4.0.1           0.10.0          The Mercure hub allows to push data updates using the Mer...
stable/oauth2-proxy     3.2.0           5.1.0           A reverse proxy that provides authentication with Google,...`

我认为我的理解是错误的。有人可以解释一下为什么这个包没有用helm search 命令列出来吗?

【问题讨论】:

  • 您的搜索似乎正在运行 helm 2 而不是 helm 3。使用 helm 2 search hub mysql 将无法正常工作,但在 helm 3 中似乎可以正常工作。上述所有命令是否都在同一台机器上运行?

标签: kubernetes google-kubernetes-engine gcloud kubernetes-helm


【解决方案1】:

我也遇到过类似的问题。

当您使用Helm 3 时,我跳过了安装部分。我的解决方案是添加适当的谷歌存储库:

$ helm repo add stable https://kubernetes-charts.storage.googleapis.com
"stable" has been added to your repositories

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

输出:

$ helm search  hub mariadb
URL                                                     CHART VERSION   APP VERSION     DESCRIPTION
https://hub.helm.sh/charts/bitnami/mariadb-galera       4.0.0           10.5.4          MariaDB Galera is a multi-master database clust...
https://hub.helm.sh/charts/bitnami/mariadb-cluster      1.0.1           10.2.14         Chart to create a Highly available MariaDB cluster
https://hub.helm.sh/charts/bitnami/phpmyadmin           6.2.2           5.0.2           phpMyAdmin is an mysql administration frontend
https://hub.helm.sh/charts/bitnami/mariadb              7.6.1           10.3.23         Fast, reliable, scalable, and easy to use open-...
https://hub.helm.sh/charts/ibm-charts/ibm-galer...      1.1.0                           Galera Cluster is a multi-master solution for M...
https://hub.helm.sh/charts/ibm-charts/ibm-maria...      1.1.2                           MariaDB is developed as open source software an...
user@cloudshell:~ (k8s-tests-278413)$

$ helm search  hub mysql
URL                                                     CHART VERSION   APP VERSION     DESCRIPTION
https://hub.helm.sh/charts/cetic/adminer                0.1.3           4.7.6           Adminer is a full-featured database management ...
https://hub.helm.sh/charts/t3n/cloudsql-proxy           2.0.0           1.16            Google Cloud SQL Proxy
https://hub.helm.sh/charts/t3n/mysql-backup             2.0.0
https://hub.helm.sh/charts/bitnami/mariadb-galera       4.0.0           10.5.4          MariaDB Galera is a multi-master database clust...
https://hub.helm.sh/charts/bitnami/mysql                6.14.4          8.0.20          Chart to create a Highly available MySQL cluster
https://hub.helm.sh/charts/bitnami/mariadb-cluster      1.0.1           10.2.14         Chart to create a Highly available MariaDB cluster
https://hub.helm.sh/charts/bitnami/phpmyadmin           6.2.2           5.0.2           phpMyAdmin is an mysql administration frontend
https://hub.helm.sh/charts/bitnami/mariadb              7.6.1           10.3.23         Fast, reliable, scalable, and easy to use open-...
https://hub.helm.sh/charts/softonic/mysql-backup        2.1.4           0.2.0           Take mysql backups from any mysql instance to A...
https://hub.helm.sh/charts/rimusz/gcloud-sqlproxy       0.19.12         1.16            Google Cloud SQL Proxy
https://hub.helm.sh/charts/kanister/kanister-mysql      0.31.0          5.7.14          MySQL w/ Kanister support based on stable/mysql
https://hub.helm.sh/charts/appscode/stash-mysql         8.0.14          8.0.14          stash-mysql - MySQL database backup and restore...
https://hub.helm.sh/charts/presslabs/mysql-cluster      0.2.0           1.0             A Helm chart for easy deployment of a MySQL clu...
https://hub.helm.sh/charts/presslabs/mysql-oper...      0.4.0           v0.4.0          A Helm chart for mysql operator
https://hub.helm.sh/charts/presslabs/orchestrator       0.1.7           3.0.14          A Helm chart for github's mysql orchestrator
https://hub.helm.sh/charts/incubator/mysqlha            2.0.0           5.7.13          MySQL cluster with a single master and zero or ...
https://hub.helm.sh/charts/wso2/mysql-am                3.1.0-2         5.7             A 
...

【讨论】:

    【解决方案2】:

    使用helm hub 搜索任何图表,例如 nginx,您可以使用那里给出的命令来安装图表。请注意

    1. stable repo 中并非所有图表都可用

    2. 您需要更新本地 helm repo 才能安装图表。

      helm repo update

      helm install stable/nginx-ingress

    【讨论】:

      猜你喜欢
      • 2019-12-12
      • 2020-05-16
      • 1970-01-01
      • 1970-01-01
      • 2021-07-28
      • 2019-01-08
      • 2020-02-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多