azure - 如何在Azure Kubernetes服务中安装gitlab-runner?

标签 azure kubernetes kubernetes-helm gitlab-ci-runner azure-aks

我尝试在 Azure Kubernetes 服务 (AKS) 的集群内安装 Gitlab Runner,但出现 2 个错误:

  1. Helm Tiller 没有出现在 Gitlab CI 的应用程序列表中: 大多数教程都告诉您必须安装它,但今天甚至没有建议您安装它,如下所示: enter image description here

  2. 当我从此列表中安装 gitlab-runner 时,我收到一条消息错误,例如 “安装 Gitlab Runner 时出现问题 手术失败。检查安装运行程序的 pod 日志以获取更多详细信息” 所以当我检查日志时,我有这个: enter image description here

最后 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/

相关文章:

azure - 我可以将应用程序见解添加到 C# 类库吗?

java - 使用 Google Jib 和 Kubernetes 时添加 SSL 证书

linux - Docker 使 CMD 保持事件状态以进行检查。 sleep 不适合,ping 默认不可用

kubernetes - Argo Workflow 未将输入参数传递给 WorkflowTemplate

kubernetes - 如何从单个 Helm 图表自动旋转n个 Helm 部署

kubernetes - Helm 管理一组服务

python - Azure 机器学习 Python 模块无法执行对认知服务的调用

c# - 当表中有记录时,如何使用azure向用户组发送电子邮件通知

c# - 在 Azure 函数中初始化 AutoMapper

google-cloud-platform - 从 GCP Secret Manager 获取 Helm Chart 的 secret