<p>I am running kubeadm alpha version to set up my kubernates cluster. 
From kubernates , I am trying to pull docker images which is hosted in nexus repository. 
When ever I am trying to create a pods , It is giving  "ImagePullBackOff" every time. Can anybody help me on this ?</p>

<p>Detail for this are present in <a href="https://github.com/kubernetes/kubernetes/issues/41536" rel="noreferrer">https://github.com/kubernetes/kubernetes/issues/41536</a></p>

<p>Pod definition : </p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: test-pod
  labels:
    name: test
spec:
  containers:
    - image: 123.456.789.0:9595/test
      name: test
      ports:
        - containerPort: 8443
  imagePullSecrets:
    - name: my-secret
</code></pre>

<p>You need to <a href="https://kubernetes.io/docs/user-guide/images/#referring-to-an-imagepullsecrets-on-a-pod" rel="noreferrer">refer to the secret</a> you have just created from the Pod definition.</p>

<p>When you create the secret with <code>kubectl create secret docker-registry my-secret --docker-server=123.456.789.0 ...</code> the server must exactly match what's in your Pod definition - <strong>including the port number</strong> (and if it's a secure one then it also must match up with the docker command line in systemd).</p>

<p>Also, the secret must be in the <strong>same namespace</strong> where you are creating your Pod, but that seems to be in order.</p>
