we configured gitlab-agent with eks cluster to execute runners on this same eks cluster . we have followed below helm commands and link.
->helm repo add gitlab https://charts.gitlab.io
->helm repo update
->helm upgrade --install gitlab-agent gitlab/gitlab-agent
–namespace gitlab-agent
–set config.token=XXXXXXXXXXXXXXXXXX
–set config.kasAddress=wss://XXXXXXXX-/kubernetes-agent/
we can see the agent status is connected in UI
But when we tried to execute the pipeline we are getting Below error
$ kubectl get pods -n gitlab-agent-esp
[50](https://xxxx/repos/testrepoinvite/test1/-/jobs/8945281#L50)Unable to connect to the server: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
below is the config.yaml
/repos/testrepoinvite/.gitlab/agents/gitlab-agent/config.yaml
ci_access:
groups:
- id: repos/testrepoinvite
observability:
logging:
level: debug
grpc_level: error
Below is the gitlab-ci.yaml config file:
repos/testrepoinvite/gitlab-ci.yaml
deploy:
tags:
- prod-test-runner
image:
name: bitnami/kubectl:latest
entrypoint: ['']
script:
- kubectl config get-contexts
- kubectl config use-context repos/testwrepoinvite/test1:gitlab-agent
- kubectl config view
#- kubectl cluster-info
- kubectl get pods -n gitlab-agent-esp
Below is the logs output from tail -f /var/log/gitlab/gitlab-kas/current this location
2022-07-05_04:52:36.23625 {"level":"error","time":"2022-07-05T04:52:36.236Z","msg":"RecvMsg(GatewayKasResponse)","correlation_id":"01G769S1CPDZF5SYRAAZF94RZQ","grpc_service":"gitlab.agent.kubernetes_api.rpc.KubernetesApi","grpc_method":"MakeRequest","agent_id":22,"kas_url":"grpc://localhost:8155","error":"rpc error: code = Unavailable desc = closing transport due to: connection error: desc = \"error reading from server: EOF\", received prior goaway: code: NO_ERROR"}
2022-07-05_04:58:58.95746 {"level":"info","time":"2022-07-05T04:58:58.957Z","msg":"Config: new commit","correlation_id":"01G76BKMDFQBS8WC72FX9D7HE7","grpc_service":"gitlab.agent.agent_configuration.rpc.AgentConfiguration","grpc_method":"GetConfiguration","agent_id":22,"project_id":"repos/testrepoinvite/test1","commit_id":"f8a4945de9696771e99973bea143fa787965c95c"}
2022-07-05_04:58:58.99821 {"level":"info","time":"2022-07-05T04:58:58.998Z","msg":"Config: failed to fetch","correlation_id":"01G76BKMDFQBS8WC72FX9D7HE7","grpc_service":"gitlab.agent.agent_configuration.rpc.AgentConfiguration","grpc_method":"GetConfiguration","agent_id":22,"project_id":"repos/testrepoinvite/test1","error":"failed to parse agent configuration: protojson.Unmarshal: proto: (line 1:89): unknown field \"grpc_level\""}
gitlab version we are using is 15.0.4 community edition
kubernetes version
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCom mit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate: "2022-05-04T02:28:17Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"linux/amd 64"}
In gitlab.rb file we included this line
gitlab_kas['enable'] = true
can someone please help us on this