Hey guys, is there a way to see the affinity of a pod/deployment without running . . .

techbro:
Hey guys, is there a way to see the affinity of a pod/deployment without running kubectl edit on it?

Tej_Singh_Rana:
Hello, @techbro

kubectl get deploy <name> -oyaml

new_day:

kubectl get deploy <name> -o yaml | grep -i affinity

techbro:
Thanks guys!