Skip to content

Commit

Permalink
Run manager with 2 replicas
Browse files Browse the repository at this point in the history
Signed-off-by: Keiichi Kii <[email protected]>
Signed-off-by: Keiichi Kii <[email protected]>
  • Loading branch information
k-keiichi-rh committed Feb 22, 2024
1 parent 27560cb commit f4676fc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ spec:
self-node-remediation-operator: ""
name: self-node-remediation-controller-manager
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
control-plane: controller-manager
Expand All @@ -337,6 +337,16 @@ spec:
control-plane: controller-manager
self-node-remediation-operator: ""
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: control-plane
operator: In
values:
- controller-manager
topologyKey: "kubernetes.io/hostname"
containers:
- args:
- --health-probe-bind-address=:8081
Expand Down
12 changes: 11 additions & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,22 @@ spec:
selector:
matchLabels:
control-plane: controller-manager
replicas: 1
replicas: 2
template:
metadata:
labels:
control-plane: controller-manager
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: control-plane
operator: In
values:
- controller-manager
topologyKey: "kubernetes.io/hostname"
securityContext:
runAsNonRoot: false
priorityClassName: system-cluster-critical
Expand Down

0 comments on commit f4676fc

Please sign in to comment.