我尝试在 Azure Kubernetes 服务 (AKS) 的集群内安装 Gitlab Runner,但出现 2 个错误:
Helm Tiller 没有出现在 Gitlab CI 的应用程序列表中: 大多数教程都告诉您必须安装它,但今天甚至没有建议您安装它,如下所示:
当我从此列表中安装 gitlab-runner 时,我收到一条消息错误,例如 “安装 Gitlab Runner 时出现问题 手术失败。检查安装运行程序的 pod 日志以获取更多详细信息” 所以当我检查日志时,我有这个:
最后 2 行有一个错误,一些答案告诉我需要使用 Helm 命令更改存储库,因此我从门户中的 Azure CLI bash 执行此操作,但我仍然遇到相同的错误,我执行像这样的代码:
helm repo rm stable
helm repo add stable https://charts.helm.sh/stable
然后我更新,我需要在命令中提供更多参数吗?
最佳答案
GitLab 13.12(2021 年 5 月)明确提到:
Helm v2 support
Helm v2 was officially deprecated in November of 2020, with the
stable
repository being de-listed from the Helm Hub shortly thereafter.With the release of GitLab 14.0 (June 2021), which will include the 5.0 release of the GitLab Helm chart, Helm v2 will no longer be supported.
Users of the chart should upgrade to Helm v3 to deploy GitLab 14.0 and above.
这就是 Helm Tiller 没有出现在 Gitlab CI 的应用程序列表中的原因。
关于azure - 如何在Azure Kubernetes服务中安装gitlab-runner?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65628476/