Skip to content

Commit 45409c3

Browse files
Merge pull request #709 from tmshort/ocpbugs-62517-ha-replicas
OCPBUGS-62517: Set replicas=1, PDB, and pod anti-affinity for HA topology
2 parents 5566708 + 4c63a27 commit 45409c3

6 files changed

Lines changed: 52 additions & 0 deletions

File tree

openshift/catalogd/manifests-experimental.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,14 @@ spec:
957957
operator: In
958958
values:
959959
- linux
960+
podAntiAffinity:
961+
preferredDuringSchedulingIgnoredDuringExecution:
962+
- podAffinityTerm:
963+
labelSelector:
964+
matchLabels:
965+
control-plane: catalogd-controller-manager
966+
topologyKey: kubernetes.io/hostname
967+
weight: 100
960968
nodeSelector:
961969
kubernetes.io/os: linux
962970
node-role.kubernetes.io/control-plane: ""

openshift/catalogd/manifests.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,14 @@ spec:
956956
operator: In
957957
values:
958958
- linux
959+
podAntiAffinity:
960+
preferredDuringSchedulingIgnoredDuringExecution:
961+
- podAffinityTerm:
962+
labelSelector:
963+
matchLabels:
964+
control-plane: catalogd-controller-manager
965+
topologyKey: kubernetes.io/hostname
966+
weight: 100
959967
nodeSelector:
960968
kubernetes.io/os: linux
961969
node-role.kubernetes.io/control-plane: ""

openshift/helm/catalogd.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ options:
88
enabled: true
99
deployment:
1010
image: ${CATALOGD_IMAGE}
11+
replicas: 1
1112
podDisruptionBudget:
1213
enabled: false
1314
operatorController:
@@ -25,6 +26,15 @@ namespaces:
2526
# Deployment values for catalogd
2627
deployments:
2728
templateSpec:
29+
affinity:
30+
podAntiAffinity:
31+
preferredDuringSchedulingIgnoredDuringExecution:
32+
- weight: 100
33+
podAffinityTerm:
34+
topologyKey: kubernetes.io/hostname
35+
labelSelector:
36+
matchLabels:
37+
control-plane: catalogd-controller-manager
2838
priorityClassName: system-cluster-critical
2939
securityContext:
3040
seLinuxOptions:

openshift/helm/operator-controller.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ options:
88
enabled: true
99
deployment:
1010
image: ${OPERATOR_CONTROLLER_IMAGE}
11+
replicas: 1
1112
podDisruptionBudget:
1213
enabled: false
1314
catalogd:
@@ -26,6 +27,15 @@ namespaces:
2627
# Deployment values for operator-controller
2728
deployments:
2829
templateSpec:
30+
affinity:
31+
podAntiAffinity:
32+
preferredDuringSchedulingIgnoredDuringExecution:
33+
- weight: 100
34+
podAffinityTerm:
35+
topologyKey: kubernetes.io/hostname
36+
labelSelector:
37+
matchLabels:
38+
control-plane: operator-controller-controller-manager
2939
priorityClassName: system-cluster-critical
3040
securityContext:
3141
seLinuxOptions:

openshift/operator-controller/manifests-experimental.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,14 @@ spec:
13451345
operator: In
13461346
values:
13471347
- linux
1348+
podAntiAffinity:
1349+
preferredDuringSchedulingIgnoredDuringExecution:
1350+
- podAffinityTerm:
1351+
labelSelector:
1352+
matchLabels:
1353+
control-plane: operator-controller-controller-manager
1354+
topologyKey: kubernetes.io/hostname
1355+
weight: 100
13481356
nodeSelector:
13491357
kubernetes.io/os: linux
13501358
node-role.kubernetes.io/control-plane: ""

openshift/operator-controller/manifests.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,14 @@ spec:
11881188
operator: In
11891189
values:
11901190
- linux
1191+
podAntiAffinity:
1192+
preferredDuringSchedulingIgnoredDuringExecution:
1193+
- podAffinityTerm:
1194+
labelSelector:
1195+
matchLabels:
1196+
control-plane: operator-controller-controller-manager
1197+
topologyKey: kubernetes.io/hostname
1198+
weight: 100
11911199
nodeSelector:
11921200
kubernetes.io/os: linux
11931201
node-role.kubernetes.io/control-plane: ""

0 commit comments

Comments
 (0)