Hi GitLab-Users,
I’m struggling with installation of GitLab-Agent into a MicroK8s installation.
Following the given helm-command
$ microk8s helm3 upgrade --install test4 gitlab/gitlab-agent --namespace gitlab-agent --create-namespace --set image.tag=v15.2.0 --set config.token=*** --set config.kasAddress=ws://***/-/kubernetes-agent/
the agent gets deployed but can’t connect to GitLab:
$ microk8s kubectl logs -f -l=app=gitlab-agent -n gitlab-agent
{“level”:“warn”,“time”:“2022-08-22T11:28:53.690Z”,“msg”:“GetConfiguration failed”,“error”:“rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing failed to WebSocket dial: expected handshake response status code 101 but got 503"”}
{“level”:“error”,“time”:“2022-08-22T11:30:08.287Z”,“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: expected handshake response status code 101 but got 503"”}
GitLab KAS is running:
$ gitlab-ctl status
run: alertmanager: (pid 1421) 152889s; run: log: (pid 1402) 152889s
run: gitaly: (pid 1431) 152889s; run: log: (pid 1413) 152889s
run: gitlab-exporter: (pid 1441) 152889s; run: log: (pid 1436) 152889s
run: gitlab-kas: (pid 1434) 152889s; run: log: (pid 1418) 152889s
run: gitlab-pages: (pid 1393) 152889s; run: log: (pid 1385) 152889s
run: gitlab-workhorse: (pid 1415) 152889s; run: log: (pid 1400) 152889s
run: grafana: (pid 1435) 152889s; run: log: (pid 1422) 152889s
run: logrotate: (pid 313937) 1654s; run: log: (pid 1405) 152889s
run: mailroom: (pid 1420) 152889s; run: log: (pid 1403) 152889s
run: mattermost: (pid 1397) 152889s; run: log: (pid 1388) 152889s
run: nginx: (pid 1417) 152889s; run: log: (pid 1401) 152889s
run: node-exporter: (pid 1391) 152889s; run: log: (pid 1381) 152889s
run: postgres-exporter: (pid 1392) 152889s; run: log: (pid 1377) 152889s
run: postgresql: (pid 1408) 152889s; run: log: (pid 1399) 152889s
run: prometheus: (pid 1429) 152889s; run: log: (pid 1412) 152889s
run: puma: (pid 1437) 152889s; run: log: (pid 1433) 152889s
run: redis: (pid 1423) 152889s; run: log: (pid 1407) 152889s
run: redis-exporter: (pid 1430) 152889s; run: log: (pid 1416) 152889s
run: registry: (pid 1432) 152889s; run: log: (pid 1414) 152889s
run: sidekiq: (pid 1398) 152889s; run: log: (pid 1387) 152889s
Under Kubernetes Clusters, GitLab says “Never connected”
I’m pretty lost, any ideas?
Thanks
Sascha