Access on premises Jenkins from google cloud

3/31/2021

I am trying to implement dynamic slave provisioning on Jenkins by using Kubernetes Plugin. My Jenkins master is running on on-premise machine whereas the Kubernetes cluster is on Google cloud(GKE). After initial configuration as per plugin documentation I was able to see the agent PODS on GKE Cluster but not in running state. PODS are getting exited as they are not able to reach the Jenkins URL (which is on-premises). Has any one tried implementing such scenario? If yes then help would be much appreciated. I am not getting any clue how to get this implemented.

If it is not feasible then I have to look for GCE plugin which will provision VM's as agents.

Thanks in advance..

-- Puneet Joshi
google-cloud-platform
google-kubernetes-engine
jenkins
kubernetes

0 Answers