Commit 22274a5
Allow KMM to be installed on worker nodes if there is no better choice.
Some installations of k8s doesn't allow deploying workloads on the
control-plane nodes or the control-plane isn't accessible at all.
In these installs, the worker nodes do not have the
node-role.kubernetes.io/control-plane or node-role.kubernetes.io/master
labels. Because the worker nodes do not have these labels the Kernel Module
Management operator will not run out of the box.
This commit changes the nodeAffinity to
preferredDuringSchedulingIgnoredDuringExecution to solve this issue.
Signed-off-by: brucejcong
Co-authored-by: Yoni Bettan <[email protected]>1 parent c6522af commit 22274a5
File tree
2 files changed
+18
-18
lines changed- config
- manager-base
- webhook-server
2 files changed
+18
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments