【问题标题】:How to install BinderHub using Helm v3如何使用 Helm v3 安装 BinderHub
【发布时间】:2021-02-16 19:17:32
【问题描述】:

在零到binderhub的用户文档中,安装基于0.2.0-3b53fce版本的BinderHub的命令是

helm install jupyterhub/binderhub --version=0.2.0-3b53fce --name=binder --namespace=binder -f secret.yaml -f config.yaml

以上代码需要 helm 2 才能运行。 问题:如何使用 helm 3 更改此安装命令?

https://github.com/jupyterhub/binderhub/issues/1046 有一篇文章讨论了所有 helm 3 兼容的 jupyterhub/binderhub 图表在数字前都有特殊的 -n 模式。因此,运行此命令以获取 helm 3 兼容图表的列表: helm search repo jupyterhub/binderhub --devel -l | grep "\\-n"

我终于安装了版本0.2.0-n301.hc5e7db2jupyterhub/binderhub 图表使用:

helm install jupyterhub jupyterhub/binderhub \
    --version=0.2.0-n301.hc5e7db2 \
    -f binderhub/secret.yaml \
    -f binderhub/config.yaml

现在在这个部署中,命名空间是默认的,这很奇怪。

fwiw,我正在使用 Google Kubernetes Engine (GKE) 尝试部署 BinderHub。我的 GKE 的默认 helm 版本是 3.2.1。此外,helm 2 很快就会弃用并且不再维护,这就是为什么我正在寻找一种使用 helm v3 安装 BinderHub 的方法的原因。提前谢谢你。

【问题讨论】:

  • 是否需要这个特定版本?我无法在 repo helm search repo -l jupyterhub/binderhub 中找到,但是我也无法部署其他版本。还在调查你有没有尝试关注Binderhub for GKE
  • @PjoterS 由于 GKE 中的默认 helm 版本是 3.2.1,我只是坚持使用它。如果你运行 helm search repo jupyterhub/binderhub --devel -l | grep "\\-n",你会看到一个 jupyterhub/binderhub 图表列表。
  • 我的意思是如果你需要这个特定的 binderhub 版本--version=0.2.0-3b53fce。我在问,因为我在回购中找不到它(我看到了其他版本)。您是否尝试过我之前评论中的Binderhub for GKE
  • 我绝对不需要这个不兼容 helm 3 的 binderhub 版本。我需要 0.2.0-n301.hc5e7db2 版本。
  • 顺便说一句,虽然我没有指定名称和命名空间,但我使用了这个代码helm install jupyterhub jupyterhub/binderhub \ --version=0.2.0-n301.hc5e7db2 \ -f binderhub/secret.yaml \ -f binderhub/config.yaml ,并算出来了。

标签: google-kubernetes-engine jupyterhub


【解决方案1】:

将其发布为 Community Wiki 以获得更好的可见性,因为在 cmets 和问题中提到了解决方案。

如果您将使用命令在 GKE 上部署 Binderhub

$ helm install jupyterhub/binderhub jupyterhub --version=0.2.0-3b53fce binder -f secret.yaml -f config.yaml

你会收到错误:

Error: failed to download "jupyterhub/binderhub" (hint: running helm repo update may help)

问题与 Helm v3 标准有关。

这与 Helm3 不接受使用任何没有符合 SemVer 2 标准的版本的 helm chart 相关。

this github thread 中提到了类似的问题。

在此线程中还提到具有特殊 -n 模式的特定 jupyterhub/binderhub charts 与 Helm v3 兼容。

列出所有 binderhub 兼容的版本:

$ helm repo add jupyterhub https://jupyterhub.github.io/helm-chart
$ helm repo update
$ helm search repo jupyterhub/binderhub --devel -l | grep "\\-n"

正如 OP 所述,当使用正确的版本时,secret.yamlconfiguration.yaml 能够部署 jupyterhub/binderhub 图表。

$ helm install jupyterhub jupyterhub/binderhub \
    --version=0.2.0-n301.hc5e7db2 \
    -f binderhub/secret.yaml \
    -f binderhub/config.yaml

另外还有特殊的binderhub version for Google Cloud-BinderHub to Google Cloud

【讨论】:

  • 感谢您整理内容!顺便问一下,社区 Wiki 中的哪个页面适合发布本教程?
  • @son520804 简而言之,Community Wiki 应该用于根据其他人的信息提供答案,或者澄清信息,扩展来自 cmets 的信息以使解决方案对社区更加可见。详情请查看Community Wiki Link。对于 Community Wiki,您不会获得声誉积分,但目标是不断发展良好信息的来源。
猜你喜欢
  • 2021-01-07
  • 2021-05-05
  • 1970-01-01
  • 1970-01-01
  • 2022-09-25
  • 2021-01-27
  • 1970-01-01
  • 2020-12-22
  • 1970-01-01
相关资源
最近更新 更多