Kubernetes - Scheduling
You wrote this pod spec with pod anti-affinity but pods are still scheduled on the same node. What is the likely error?
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app: myapp
topologyKey: "kubernetes.io/hostname"
