Can I enforce a node to accept ONLY pods with a specific label or annotation?

Hi,

I know that I can enforce a pod being run on a node with specific label or annotation with a nodeSelector. But I’d like to have the opposite and making sure that no other pods could actually be run on my node.
Is there a way to do this ?

Thanks in advance,
Loic

Cluster information:

Kubernetes version: 1.24
Cloud being used: Aeure AKS

Nevermind, I found the solution:

Sorry for the news,
Loic