如何使用Helm v3安装BinderHub

问题描述

从零到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

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

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

enter image description here

我最终使用以下命令安装了版本0.2.0-n301.hc5e7db2 jupyterhub / binderhub图表:

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

现在在此部署中,名称空间是名称,这很奇怪。

首先,我正在使用Google Kubernetes Engine(GKE)尝试部署BinderHub。我的GKE的认头盔版本是3.2.1。此外,Helm 2将会被弃用,并且很快将不再维护,这就是我寻求使用Helm v3安装BinderHub的原因。预先谢谢你。

解决方法

在评论和问题中提到将其发布为Community Wiki以便更好地查看解决方案。

如果您将使用命令在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图表有关。

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

在该主题中还提到了具有特殊jupyterhub/binderhub 模式的特定-n图表与Helm v3兼容。

要列出所有与Bindhub兼容的版本:

$ 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

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...