1
有沒有人成功地在CI作業的gitlab上設置kubernetes executor/runner?我設立了我的,但它無限期地執行我的管道。Kubernetes executor gitlab
我在kubernetes集羣上運行一個運行器作爲docker容器,並連接到我的gitlab實例以處理我的CI構建。
任何工作的配置文件,將不勝感激。
我的亞軍配置是這樣的:
[[runners]]
name = "kube-executor"
url = "https://gitlab.example.ltd/"
token = "some-token"
executor = "kubernetes"
[runners.cache]
[runners.kubernetes]
host = "https://my-kubernetes-api-address:443"
ca_file = "/etc/ssl/certs/ca.crt"
cert_file = "/etc/ssl/certs/server.crt"
key_file = "/etc/ssl/certs/server.key"
image = "docker:latest"
namespace = "gitlab"
namespace_overwrite_allowed = "ci-.*"
privileged = true
cpu_limit = "1"
memory_limit = "1Gi"
service_cpu_limit = "1"
service_memory_limit = "1Gi"
helper_cpu_limit = "500m"
helper_memory_limit = "100Mi"
poll_interval = 5
poll_timeout = 3600
[runners.kubernetes.volumes]
,這將引發此錯誤:ERROR: Job failed (system failure): Post https://my-kubernetes-api-address:443/api/v1/namespaces/gitlab/secrets: x509: certificate signed by unknown authority
到目前爲止您的配置是什麼?請更具體地說明你已經完成了什麼以及錯誤是什麼。 – adebasi
併發= 1 check_interval = 0 [[參賽者]] 名稱= 「kubernetes」 URL = 「https://gitlab.repo.ltd」 令牌= 「我的-令牌的」 執行人= 「kubernetes」 [runners.cache] [runners.kubernetes] host =「https://my-kubernetes-api-address.ltd」 --tls-cert-file =「/etc/ssl/certs/server.crt」--tls-private-key-file =「/etc/ssl/certs/server.key」 --client-ca-file =「/etc/ssl/certs/ca.crt」 image =「docker:最新的「 namespace =」ci「 namespace_overwrite_allowed =」ci - 。*「 特權=真 [runners.kubernetes.volumes] – Bubacarr
這是我在我的/etc/gitlab-runner/config.toml中的配置 – Bubacarr