<p>So I am trying to understand two parts:</p>

<ol>
<li><p>What are the different types of values that can be put into "imagePullSecrets"?  What does each one do?</p></li>
<li><p>What in particular does "regsecret" value for "imagePullSecrets" do?</p></li>
</ol>

<p>Thank you!</p>

cody.tv.weber
<p><code>imagePullSecrets</code> is the parameter which has to be used to invoke authorization token, also known as a secret, that stores Docker credentials that are used for accessing Docker registry inside Kubernetes Pod configuration.</p>

<pre><code>kubectl create secret docker-registry &lt;SECRET_NAME&gt; --docker-server=&lt;FQDN_DOCKER_SERVER&gt; --docker-username=&lt;USER_NAME&gt; --docker-password=&lt;USER_PASSWORD&gt; --docker-email=&lt;USER_EMAIL&gt;
</code></pre>

<p>I assume that <code>regsecret</code> equals <code>SECRET_NAME</code> from above command line example, which defines Kubernetes secret:</p>

<pre><code>NAME                  TYPE                                  DATA      AGE
&lt;SECRET_NAME&gt;         kubernetes.io/dockercfg               1         5d
</code></pre>

<p>Finally to revoke data from secret just needs <code>imagePullSecrets</code> to be included in the corresponded Pod configuration:</p>

<pre><code>apiVersion: apps/v1beta2
  kind: Deployment
  metadata:
    name: nginx-demo
  spec:
    replicas: 1
    selector:
      matchLabels:
        app: nginx
    template:
      metadata:
        labels:
          app: nginx
      spec:
        hostNetwork: false
        containers:
        - name: nginx
          image: &lt;FQDN_DOCKER_SERVER&gt;
        imagePullSecrets:
        - name: &lt;SECRET_NAME&gt;
</code></pre>

<p>Related documentation links from official Kubernetes resource:</p>

<ol>
<li><a href="https://kubernetes.io/docs/concepts/configuration/secret/" rel="nofollow noreferrer">Overview of Secrets</a>;</li>
<li><a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account" rel="nofollow noreferrer">Add ImagePullSecrets to a service account</a>; </li>
<li><a href="https://kubernetes.io/docs/concepts/containers/images/#using-a-private-registry" rel="nofollow noreferrer">Using a Private Docker Registry</a> </li>
</ol>
