livenessProbe in runner kubernetes executor

Hi,

I have deployed gitlab runner in Kubernetes cluster by using this chart gitlab/gitlab-runner. Here is the configuration about runner :

    [[runners]]
      [runners.kubernetes]
        namespace = "{{.Release.Namespace}}"
        helper_image = "***/gitlab-runner-helper:x86_64-${CI_RUNNER_REVISION}"
        cpu_limit = "200m"
        memory_limit = "256Mi"
        cp_requests = "100m"
        memory_requests = "128Mi"
        helper_cpu_limit = "200m"
        helper_memory_limit = "256Mi"
        helper_cp_requests = "100m"
        helper_memory_requests = "128Mi"

When I run the pipeline based on this runner, the request is denied with this error : admission webhook "validation.gatekeeper.sh" denied the request: [container-must-have-probes] : Container build in Pod runner-dfgsavdz-project-xxx-concurrent-0qdlnz has no livenessProbe

We have ocnfigured liveness and readiness in the deployment of gitlab runner pod, but we need to configure more probes when lancing the pipeline, how to add probes for the kubernetes ecexutor?

Thanks

ref : gitlab runner chart https://docs.gitlab.com/runner/install/kubernetes.html

Assignee Loading
Time tracking Loading