I have 4 k8's nodes, let's say apple, ball, cat, dell nodes. If I want to assign a pod(the kind used is deployment/statefullset) to a selective node then I could use node_selector for it. I'm going to implement vertical autoscaling of nodes. If autoscaling of node occurs then, the pod can allocate to any nodes. I need this to be done using node selector only. So what could be done. Is there any possibility of regex in node selector or any idea ? I tried a below but unachievable
nodeSelector:
kubernetes.io/hostname: "apple([-A-Za-z0-9_.]*)"