Connecting a gitlab agent to a Kubernetes cluster

Hi all,

I’m still new to gitlab and have been trying to add a gitlab agent to a kubernetes cluster to run a pipeline but I am getting some errors in my logs. I have been researching this error message and I believe it is because the Kubernetes does not trust my gitlab certificates. I have also been following a troubleshooting doc that I will paste below. So far I have created a config map, now I am trying to update resources.yml but can’t seem to find it anywhere. Let me know if you have any suggestions! Any help will be appreciated greatly.

Trouble shooting doc and error messages:

{
“level”: “error”,
“time”: “2023-03-02T15:50:16.510Z”,
“msg”: “Error handling a connection”,
“mod_name”: “reverse_tunnel”,
“error”: “Connect(): rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing failed to WebSocket dial: failed to send handshake request: Get \\ : x509: certificate signed by unknown authority"”
}

{
“level”: “warn”,
“time”: “2023-03-02T15:51:57.080Z”,
“msg”: “GetConfiguration failed”,
“error”: “rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing failed to WebSocket dial: failed to send handshake request: Get \\ \": x509: certificate signed by unknown authority"”
}