Helm: 没有互联网连接的头盔初始化。

创建于 2017-04-07  ·  3评论  ·  资料来源: helm/helm

用例:

在不需要稳定的图表回购并且(BTW)根本没有Internet连接(甚至没有公共DNS服务器可用)的环境中提供掌舵功能。

问题:

当前,在这种隔离的环境中,helm init失败了,因为它无法获取稳定存储库的index.yaml。

# helm init -c
Creating /root/.helm
Creating /root/.helm/repository
Creating /root/.helm/repository/cache
Creating /root/.helm/repository/local
Creating /root/.helm/plugins
Creating /root/.helm/starters
Creating /root/.helm/repository/repositories.yaml
Error: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Get https://kubernetes-charts.storage.googleapis.com/index.yaml: dial tcp: lookup kubernetes-charts.storage.googleapis.com on xx.xx.xx.xx:53: server misbehaving

解决方法:

helm init -c之前创建一个空的/root/.helm/repository/repositories.yaml文件和其他相关目录可以解决此问题,因为在这种情况下,头盔不希望访问稳定的图表回购。

解决方案:

最好有一些命令行参数或其他选项控件来避免这种运行时Internet依赖性。

如果发现用例有意义,请提供建议的参数/方法以控制它,我们将予以实施。

questiosupport

最有用的评论

在Helm 2.3.0中: helm init -c --skip-refresh

所有3条评论

在Helm 2.3.0中: helm init -c --skip-refresh

确实。 我们尝试使用2.2.0舵机CLI来解决这个问题,而无需进行master / 2.3.0代码检查。
感谢您及时的回复!

helm init -c-跳过刷新

谢谢你。

此页面是否有帮助?
0 / 5 - 0 等级