Skip to content

Commit 3312d92

Browse files
committed
fix: add AntiAffinity rules for registry addon
1 parent 264f9e9 commit 3312d92

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

charts/cluster-api-runtime-extensions-nutanix/addons/registry/cncf-distribution/values-template.yaml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,20 @@ tolerations:
3030
operator: Exists
3131
effect: "NoSchedule"
3232

33-
nodeAffinity:
34-
requiredDuringSchedulingIgnoredDuringExecution:
35-
nodeSelectorTerms:
36-
- matchExpressions:
37-
- key: node-role.kubernetes.io/control-plane
38-
operator: Exists
33+
podLabels:
34+
caren.nutanix.com/cluster-uuid: {{ .ClusterUUID }} # ensure the labels match with pod AntiAffinity.
35+
36+
affinity:
37+
nodeAffinity:
38+
requiredDuringSchedulingIgnoredDuringExecution:
39+
nodeSelectorTerms:
40+
- matchExpressions:
41+
- key: node-role.kubernetes.io/control-plane
42+
operator: Exists
43+
podAntiAffinity:
44+
preferredDuringSchedulingIgnoredDuringExecution:
45+
- weight: 100
46+
podAffinityTerm:
47+
labelSelector:
48+
matchLabels:
49+
caren.nutanix.com/cluster-uuid: {{ .ClusterUUID }}

0 commit comments

Comments
 (0)