<p>I'm trying to deploy pods on the nodes which have labels like <strong>es-node: data-1, es-node:data-2, es-node:data-3</strong>. I can use all the labels in pod's nodeaffinity spec but i just want to use single label entry as <strong>es-node:data-*</strong> so that it gets deployed on all the nodes. Is this even possible?</p>

<p>I don't think you can specify regular expressions on label selectors but you can just add an additional label, let's say <code>es-node-type: data</code> and put that as a label selector for your deployment or stateful set.</p>
