Skip to content

Commit e10360f

Browse files
authored
Add tolerations to the HAProxy daemonset to make it run on not ready nodes (#1306)
Signed-off-by: Alexey Makhov <[email protected]> Signed-off-by: makhov <[email protected]>
1 parent 3c52b25 commit e10360f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/controller/k0smotron.io/k0smotroncluster_ingress.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ spec:
138138
app: k0smotron-haproxy
139139
spec:
140140
hostNetwork: true
141+
tolerations:
142+
- key: "node.kubernetes.io/not-ready"
143+
operator: "Exists"
144+
effect: "NoSchedule"
145+
- key: "node.kubernetes.io/unreachable"
146+
operator: "Exists"
147+
effect: "NoSchedule"
141148
containers:
142149
- name: haproxy
143150
image: haproxy:2.8

0 commit comments

Comments
 (0)