I have configured a gitlab-agent for my project and gotten is deployed to a simple Kubernetes instance. However it fails as it can’t perfrom the TLS handshake due to the GitLab instance using an internal CA for the cert:
{"level":"error","time":"2022-11-15T09:51:07.517Z","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 \\\"https://gitlab.domain.local/-/kubernetes-agent/\\\": x509: certificate signed by unknown authority\""}
{"level":"warn","time":"2022-11-15T09:52:46.550Z","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 \\\"https://gitlab.domain.local/-/kubernetes-agent/\\\": x509: certificate signed by unknown authority\""}
The Kubernetes node has a copy of the internal CA and trusts it, how do get the gitlab-agent to do the same? I can find instructions for the runner, but not the agent.
Thanks!