Cannot authenticate GitLab with VMware Cloud PKS, authentication error

I am attempting to connect GitLab CE 12.3.5-0 to a Kubernetes cluster running on VMware Cloud PKS. I have followed the steps in https://docs.gitlab.com/ee/user/project/clusters/#add-existing-kubernetes-cluster to configure/obtain the authentication credentials. However after submitting the information, GitLab displays the error "There was a problem authenticating with your cluster. Please ensure your CA Certificate and Token are valid. "

I have reconfirmed the certificate and token values. I am also able to connect to the PKS cluster using kubectl.

To confirm that this is not a problem with my GitLab installation, I tried to connect with a cluster running on GKE following the same steps and this was successful. The issue therefore seems to be specific to GitLab and VMware Cloud PKS.

Please let me know if you need further information.

I have been adding rancher to gitlab, but I got the same issue with you There was a problem authenticating with your cluster. Please ensure your CA Certificate and Token are valid. I have no idea on this.

I am experiencing the same issue. Any solution to this?