gitlab - 我应该如何在 Linux 上安装 gitlab-runners?
问题描述
我在 Linux 上,这里是系统详细信息: Linux maltserver 5.4.0-47-generic #51~18.04.1-Ubuntu SMP Sat Sep 5 14:35:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
尝试安装 gitlab-runner 时出现以下错误:
tania@maltserver:~$ helm install --namespace gitlab gitlab-runner -f values.yaml gitlab/gitlab-runner
Error: failed to download "gitlab/gitlab-runner" (hint: running `helm repo update` may help)
tania@maltserver:~$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "stable" chart repository
Update Complete. â Happy Helming!â
tania@maltserver:~$ helm install --namespace gitlab gitlab-runner -f values.yaml gitlab/gitlab-runner
Error: failed to download "gitlab/gitlab-runner" (hint: running `helm repo update` may help)
还尝试了以下方法:
tania@maltserver:~$ helm search hub gitlab/gitlab-runner
URL CHART VERSION APP VERSION DESCRIPTION
https://hub.helm.sh/charts/gitlab/gitlab-runner 0.21.0-rc1 13.4.0-rc1 GitLab Runner
https://hub.helm.sh/charts/camptocamp/gitlab-ru... 0.12.6 12.6.0 GitLab Runner
tania@maltserver:~$ helm install --namespace gitlab gitlab-runner -f values.yaml https://hub.helm.sh/charts/gitlab/gitlab-runner
Error: file '/home/tania/.cache/helm/repository/gitlab-runner' does not appear to be a gzipped archive; got 'text/html; charset=utf-8'
任何有关成功安装 gitlab-runner 的帮助将不胜感激。谢谢你。
解决方案
现在工作,我必须这样做:
tania@maltserver:~$ helm repo add https://charts.gitlab.io
tania@maltserver:~$ helm install --namespace gitlab gitlab-runner -f values.yaml gitlab/gitlab-runner
NAME: gitlab-runner
LAST DEPLOYED: Tue Sep 15 13:19:53 2020
NAMESPACE: gitlab
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Your GitLab Runner should now be registered against the GitLab instance reachable at: "https://gitlab.com/"
资源:
https://docs.gitlab.com/runner/install/kubernetes.html
推荐阅读
- android - onKeyDown 中的键码错误字符
- r - R将地图ShapeFiles合并在一起
- css - 时事通讯 HTML:字体和垂直对齐
- markdown - Markdown 未编号部分但需要锚点
- oracle - 如何在 Oracle 数据库中循环遍历数组并插入记录?
- c - 关于本书数字食谱的问题,第 2 版:向量的内存分配/解除分配
- c - 如何使包含在不同类线程中的全局变量在c中安全
- android - Firestore firebase Android 搜索和更新查询
- python - 如何从 Python 中不同长度的列表列表中创建数据框?
- php - 如何将 WP 变量添加到 GD imagepng