Hi!
I’m configuring a new environment with K8s 1.27 and Gitlab 16.8.
Now i’m trying to integrate both through gitlab-agent.
I followed the documentation but it’s not working.
I’m getting this error from gitlab-agent:
kubectl logs k8s-connection-gitlab-agent-v2-69cdf857d-lqcqp -n gitlab-agent-k8s-connection
{“level”:“info”,“time”:“2024-02-03T11:22:03.579Z”,“msg”:“Observability endpoint is up”,“mod_name”:“observability”,“net_network”:“tcp”,“net_address”:“[::]:8080”}
{“level”:“error”,“time”:“2024-02-03T11:22:03.590Z”,“msg”:“Failed to register agent pod. Please make sure the agent version matches the server version”,“mod_name”:“agent_registrar”,“error”:“rpc error: code = Unavailable desc = unavailable”}
{“level”:“error”,“time”:“2024-02-03T11:22:15.991Z”,“msg”:“Failed to register agent pod. Please make sure the agent version matches the server version”,“mod_name”:“agent_registrar”,“error”:“rpc error: code = Unavailable desc = unavailable”}
{“level”:“error”,“time”:“2024-02-03T11:22:44.030Z”,“msg”:“Failed to register agent pod. Please make sure the agent version matches the server version”,“mod_name”:“agent_registrar”,“error”:“rpc error: code = Unavailable desc = unavailable”}
I’have instaled this agent using the code that gitlab gave me:
helm upgrade --install k8s-connection gitlab/gitlab-agent
–namespace gitlab-agent-k8s-connection
–create-namespace
–set image.tag=v16.8.0
–set config.token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
–set config.kasAddress=wss://gitlab.xxx.yy.zz/-/kubernetes-agent/
–set-file config.caCert=/etc/ssl/certs/CERTIFICATE.crt
If anyone has any idea how to fix this, i appreciate.
Thanks!