问题描述
从零到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"
我最终使用以下命令安装了版本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.yaml
和configuration.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。