How to change the node Affinity to assign all the pods to specific node

How to change the node Affinity to assign all the pods to specific node. If there as any command we can use to make life easier ?

there are multiple ways in which you can schedule a pod to a specific node. depends on the context and the architecture of your set up. If this is just for the labs, you can try manual scheduling, specifying a nodeName. You can also you a combination of taints + toleration and Node Afffinity.