<p>I'd like to deploy pods into my GKE Kubernetes cluster that use images from a private, third-party Docker registry (<em>not</em> GCP's private Docker registry).</p>

<p>How do I provide my GKE Kubernetes cluster with credentials to that private repository so that the images can be pulled when required?</p>

<p>You need to create a secret that holds the credentials needed to download images from the private registry. <a href="https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/" rel="noreferrer">This process is explained on Kubernetes documentation</a>, but it looks like</p>

<pre><code>kubectl create secret docker-registry regsecret --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>Then, once your secret has been created, you need to specify that you want to use this secret to pull images from the registry when creating the pod's containers with the <code>imagePullSecrets</code> key containing the name of the secret created above, like</p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: private-reg
spec:
  containers:
  - name: private-reg-container
    image: &lt;your-private-image&gt;
  imagePullSecrets:
  - name: regsecret
</code></pre>
