<p>I'm currently using the Kubernetes Plugin for Jenkins to on-demand provision Jenkins workers on my kubernetes cluster. </p>

<p>A base image for the worker node is stored in my (artifactory) docker registry, and the Kubernetes plugin is configured to pull this image to spawn workers.</p>

<p>My artifactory docker repo was not using authentication but I've now moved it to authenticating image pulls. However there is no apparent way to provide the registry credentials via the UI. </p>

<p>The Jenkins K8s plugin documentation doesn't appear to mention a way to do this via the UI either. There is minimal documentation on the  "imagePullSecrets" parameter, but the scope of this seems to apply to pipeline definition or kubernetes template definitions, which seems like overkill.</p>

<p>Is there something I'm missing? I'd be thankful if someone could point out the steps to configure this without having to create a kubernetes template configuration from scratch again.</p>

<p>Thanks in advance!</p>

<p>the <code>imagePullSecret</code> relates to a Kubernetes secret where your credentials are stored </p>

<p>Details of how to create the Kubernetes can be found here: <a href="https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/" rel="nofollow noreferrer">pull image from private registry</a></p>

<h1>Create a Secret by providing credentials on the command line</h1>

<p>Create this Secret, naming it regcred:</p>

<pre><code>kubectl create secret docker-registry regcred --docker-server=&lt;your-registry-server&gt; --docker-username=&lt;your-name&gt; --docker-password=&lt;your-pword&gt; --docker-email=&lt;your-email&gt;
</code></pre>

<p>where:</p>

<pre><code>&lt;your-registry-server&gt; is your Private Docker Registry FQDN. (https://index.docker.io/v1/ for DockerHub)
&lt;your-name&gt; is your Docker username.
&lt;your-pword&gt; is your Docker password.
&lt;your-email&gt; is your Docker email.
</code></pre>

<p>then you should be able to set your <code>imagepullsecret</code> to: regcred</p>
