Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find the gcloud Kubernetes api url for gitlab integration

I'm using the hosted version of gitlab and gitlab-ci and following the kubernetes integration setup https://docs.gitlab.com/ce/user/project/integrations/kubernetes.html.

I'm struggling to find what to enter as the Kubernetes API URL for my gcloud hosted kubernetes instance. I assume I'm missing something obvious :-(

like image 467
jayTee Avatar asked Nov 21 '17 20:11

jayTee


People also ask

How does GitLab connect to Kubernetes?

You can connect your Kubernetes cluster with GitLab to deploy, manage, and monitor your cloud-native solutions. To connect a Kubernetes cluster to GitLab, you must first install an agent in your cluster. The agent runs in the cluster, and you can use it to: Communicate with a cluster, which is behind a firewall or NAT.

How do I access API in Kubernetes?

Go client. To get the library, run the following command: go get k8s.io/client-go@kubernetes-<kubernetes-version-number> See https://github.com/kubernetes/client-go/releases to see which versions are supported. Write an application atop of the client-go clients.


1 Answers

kubectl cluster-info

or

cat ~/.kube/config | grep server
like image 111
Camil Avatar answered Oct 20 '22 06:10

Camil