<p>I've been struggling with setting up the Jenkins Kubernetes Plugin on the Google Container Engine.</p>

<p>I have the plugin installed but I think all my builds are still running on master.</p>

<p>I haven't found any good documentation or guides on configuring this.</p>

<p><strong>UPDATE</strong></p>

<p>I removed the master executor from my Jenkins image. So now my builds aren't running on master but now they have no executor so they don't run at all. Just waits in the queue forever.</p>

<p>You'll need to tell Jenkins how and where to run your builds by adding your Kubernetes cluster as a 'cloud' in the Jenkins configuration. Go to <code>Manage Jenkins -&gt; Configure System -&gt; Cloud -&gt; Add new cloud</code> and select 'Kubernetes'. You'll find the server certificate key, user name and password in your local kubectl configuration (usually in <code>~/.kube/config</code>). The values for 'Kubernetes URL' and 'Jenkins URL' depend on your cluster setup. </p>

<p>Next, you'll need to configure the docker images that should be used to run your builds by selecting 'Add Docker Template'. Use labels to define which tasks should be run with which image!</p>

<p><a href="https://www.youtube.com/watch?v=PFCSSiT-UUQ&amp;index=21&amp;list=PL69nYSiGNLP0Ljwa9J98xUd6UlM604Y-l" rel="noreferrer">Here</a>'s a good video tutorial and <a href="https://www.cloudbees.com/blog/demand-jenkins-slaves-kubernetes-and-google-container-engine" rel="noreferrer">here</a> you'll find a nice tutorial which explains everything in detail.</p>
