title: How to pass imagePullSecrets from commandline
body: <p>I am using kubernetes imperative way instead of declarative.
  As there are many parameters changing regularly and can't update the yaml file every time.</p>
  
  <p>For creating a deployment, we use this</p>
  
  <pre><code>kubectl create deployment nginx --image=nginx:1.7.1
  </code></pre>
  
  <p>This is fine for public images.
  But for provate images, we need to pass credentials data using secrets.As in <a href="https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/" rel="nofollow noreferrer">link</a>
  If it is yaml file, we keep in the file below line.</p>
  
  <pre><code> imagePullSecrets:
    - name: regcred
  </code></pre>
  
  <p>But, how to pass this data for below type of line.?</p>
  
  <pre><code>kubectl create deployment nginx --image=nginx:1.7.1
  </code></pre>