title: Create deployment vs run deployment
body: <p>Google course on Kubernetes proposes:  </p>
  
  <pre><code>$ kubectl run kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1 --port=8080  
    kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. 
    Use kubectl run --generator=run-pod/v1 or kubectl create instead.
  </code></pre>
  
  <p>Now I'm trying to use the new syntax:  </p>
  
  <pre><code>$ kubectl create deployment kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1  
  $ kubectl expose deployment/kubernetes-bootcamp --port=8080 type=NodePort
  </code></pre>
  
  <p>I'm sure that they are not the same. Could anyone help me?</p>
  
  <p>Rr</p>
  
  <p>Not duplicate: I'm asking about equivalence of two commands</p>