title: Apply part of kubernetes manifest yaml using kubectl
body: <p>consider the following kubernetes manifest (mymanifest.yml) :</p>
  <pre><code>apiVersion: v1
  kind: Pod
  metadata:
    name: firstpod
  spec:
    containers:
    - image: nginx
      name: nginx
  ---
  apiVersion: v1
  kind: Pod
  metadata:
    name: secondpod
  spec:
    containers:
    - image: nginx
      name: nginx
  </code></pre>
  <p>If I do <code>kubectl apply -f mymanifest.yml</code> both pods are deployed.
  I remember someone told me that it is possible to deploy only one pod. Something like :</p>
  <pre><code>kubectl apply -f mymanifest.yml secondpod
  </code></pre>
  <p>But it doesn't work.
  Is there a way to do it?</p>
  <p>Thx in advance</p>