Issue with node and pod affinity

Hi please help with node and pod affinity for below issue
i have 3 node cluster(1manager, 2 worker) where i want to create all the pods in one single node.
first used deploy.yaml to create deployment where all PODs created in kslave1 node as desired and then when trying with affinity.yaml to create another deployment its getting created in other node where as expectation is to get created in same node as previous deployment. please help to identify the issue.

deploy.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: blue
spec:
replicas: 3
selector:
matchLabels:
sweet: honeycomb
template:
metadata:
labels:
sweet: honeycomb
spec:
containers:
- image: nginx
name: nginx-2
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- kslave1

affinity.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: blue-affinity
spec:
replicas: 2
selector:
matchLabels:
honey: bee
template:
metadata:
labels:
honey: bee
spec:
containers:
- image: nginx
name: nginx-1
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: sweet
operator: In
values:
- honeycomb
topologyKey: topology.kubernetes.io/zone

Thanks in advance for help.

Hello @avisek.maiti,
and welcome in kodekloud community.
please use the following official kubernetes documentation: