我应该如何在Linux上安装gitlab-runners?

时间:2020-09-15 17:10:19

标签: gitlab gitlab-ci-runner

我在Linux上,这是系统详细信息: Linux Maltserver 5.4.0-47-通用#51〜18.04.1-Ubuntu SMP星期六9月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的任何帮助,我们将不胜感激。谢谢。

1 个答案:

答案 0 :(得分:0)

现在工作,我必须做:

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