diff --git a/config/policy-webhook.yaml b/config/policy-webhook.yaml index 65c07f62d46..1aa59ca9e9a 100644 --- a/config/policy-webhook.yaml +++ b/config/policy-webhook.yaml @@ -35,7 +35,7 @@ spec: - podAffinityTerm: labelSelector: matchLabels: - app: policy-webhook + role: policy-webhook topologyKey: kubernetes.io/hostname weight: 100 diff --git a/config/webhook.yaml b/config/webhook.yaml index 87263376f3b..f15504b2de2 100644 --- a/config/webhook.yaml +++ b/config/webhook.yaml @@ -34,7 +34,7 @@ spec: - podAffinityTerm: labelSelector: matchLabels: - app: webhook + role: webhook topologyKey: kubernetes.io/hostname weight: 100