title: Select image based on OS in yaml
body: <p><strong>Context:</strong>
  I am using Linux and Windows nodes in a Kubernetes cluster. Depending on the OS where a pod is deployed, I need to use a specific image.</p>
  <p><strong>Question:</strong>
  Is there a way to express this in a Kubernetes yaml files: &quot;if this label exist on the pod you are deploying, then use this image. Otherwise, use this other image.&quot;.</p>
  <p><strong>Other options considered:</strong></p>
  <ul>
  <li>Have two copies of the same yaml but each configured with a OS-specific image with a nodeSelector in each yaml targeting either Linux or Windows nodes. This is not ideal as we need to keep both yaml files in sync if we need to change something in one.</li>
  <li>Helm charts. I guess that would solve the issue of having to maintain two similar yaml files by using templates. But still, it seems overkill for what I need if there is an easy way to do it in yaml.</li>
  </ul>