Skip to content

Commit 6365f5e

Browse files
authored
fix: Allow Node Feature Discovery garbage collector to run on control-plane nodes (#722)
**What problem does this PR solve?**: With this change, all NFD components can run on a single node cluster. **Which issue(s) this PR fixes**: Fixes #https://jira.nutanix.com/browse/NCN-100706 **How Has This Been Tested?**: <!-- Please describe the tests that you ran to verify your changes. Provide output from the tests and any manual steps needed to replicate the tests. --> **Special notes for your reviewer**: <!-- Use this to provide any additional information to the reviewers. This may include: - Best way to review the PR. - Where the author wants the most review attention on. - etc. -->
1 parent c41359f commit 6365f5e

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

charts/cluster-api-runtime-extensions-nutanix/templates/nfd/manifests/helm-addon-installation.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,11 @@ data:
2727
- effect: NoSchedule
2828
key: node-role.kubernetes.io/control-plane
2929
### <NFD-WORKER-CONF-END-DO-NOT-REMOVE>
30+
31+
gc:
32+
tolerations:
33+
- effect: NoSchedule
34+
key: node-role.kubernetes.io/master
35+
- effect: NoSchedule
36+
key: node-role.kubernetes.io/control-plane
3037
{{- end -}}

charts/cluster-api-runtime-extensions-nutanix/templates/nfd/manifests/node-feature-discovery-configmap.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,11 @@ data:
967967
dnsPolicy: ClusterFirstWithHostNet
968968
securityContext: {}
969969
serviceAccountName: node-feature-discovery-gc
970+
tolerations:
971+
- effect: NoSchedule
972+
key: node-role.kubernetes.io/master
973+
- effect: NoSchedule
974+
key: node-role.kubernetes.io/control-plane
970975
kind: ConfigMap
971976
metadata:
972977
creationTimestamp: null

hack/addons/kustomize/nfd/helm-values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ worker: ### <NFD-WORKER-CONF-START-DO-NOT-REMOVE>
2121
- effect: NoSchedule
2222
key: node-role.kubernetes.io/control-plane
2323
### <NFD-WORKER-CONF-END-DO-NOT-REMOVE>
24+
25+
gc:
26+
tolerations:
27+
- effect: NoSchedule
28+
key: node-role.kubernetes.io/master
29+
- effect: NoSchedule
30+
key: node-role.kubernetes.io/control-plane

0 commit comments

Comments
 (0)