I’m trying to setup a local gitlab instance (inside docker on Host A) to access a Kubernetes Cluster (using rancher on Host B).
I followed the steps on Adding and removing Kubernetes clusters | GitLab
However I get: “There was a problem authenticating with your cluster. Please ensure your CA Certificate and Token are valid.”
This issue arises when I connect it on project level and also on instance level.
So I checked the cert, like they write in the docs, which tells me:
DNS:localhost, DNS:rancher.cattle-system, IP Address:10.0.0.73, IP Address:127.0.0.1, IP Address:172.17.0.4
10.0.0.73 is the IP of host B, so everything seems fine.
The URL to the cluster is https://10.0.0.73:4443
without trailing slashes.
I also think the token is correctly configured:
I also checked that there are no newlines nor spaces within the token.
I also checked tail -f logs/gitlab-rails/kubernetes.log
which stays empty.
I would really appreciate if anyone could point me in the correct direction.