<p>I am creating 11 pods on EKS kubernetes. I have two public and two private subnets.
In that, I have to move 10 pods in private subnet and 1 pod in public subnet. The reason behind moving in a public subnet is I have to attach public facing load balancer IP to it. But I have not sure how to move particular pod in particular subnet on EKS. I got similar question asked <a href="https://stackoverflow.com/questions/54027386/eks-in-private-subnet-load-balancer-in-public-subnet">here</a>. But. didn't got answer.
All things I am creating via Cloudformation.
How can I create particular pod in particular subnet on EKS?</p>

ImPurshu
<p>Seems like <a href="https://kubernetes.io/docs/concepts/configuration/assign-pod-node/" rel="nofollow noreferrer">Kubernetes' nodeSelector</a> is the thing you need. You just have to add a fitting label to the nodes, <a href="https://stackoverflow.com/a/52228629/10761013">this answer</a> will help you automate it.</p>
