If you are running with a multi-mode cluster and when you want to place your pods on specific nodes then node affinity is the best option. to achieve the node affinity you have to mention in the manifest specification. There are two types of affinity: hard and soft. requiredDuringSchedulingIgnoredDuringExecution ( Hard) preferredDuringSchedulingIgnoredDuringExecution (soft) when we use required that means hard affinity and preferred means soft affinity. In simple way when you want to place pod on specific node then you can use the required option and when you have two nodes then you can mention the weight to place the pods. Request: you need place a nginx pod to k8s-n2 with 2 replicas. Hard Affinity - I have 3 node cluster as follows; my manifest file as follows. In my manifest file if you see closely the match expression has set to key and value pairs. the key is "servers" and value is "qrst-ap...