1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-14 20:56:42 +00:00

kustomize: topology-updater: enable the configuration via kustomization

Add a kustomization file with a config example for the exclude-list.

Signed-off-by: Talor Itzhak <titzhak@redhat.com>
This commit is contained in:
Talor Itzhak 2022-11-02 17:01:55 +02:00
parent 2896541bf1
commit 8b5918a2e9
5 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
generatorOptions:
disableNameSuffixHash: true
configMapGenerator:
- files:
- nfd-topology-updater.conf=nfd-topology-updater.conf.example
name: nfd-topology-updater-conf

View file

@ -0,0 +1,7 @@
## key = node name, value = list of resources to be excluded.
## use * to exclude from all nodes.
## an example for how the exclude list should looks like
#excludeList:
# node1: [cpu]
# node2: [memory, example/deviceA]
# *: [hugepages-2Mi]

View file

@ -10,6 +10,9 @@
- name: kubelet-podresources-sock
hostPath:
path: /var/lib/kubelet/pod-resources/kubelet.sock
- name: nfd-topology-updater-conf
configMap:
name: nfd-topology-updater-conf
- op: add
path: /spec/template/spec/containers/0/volumeMounts
@ -20,6 +23,9 @@
mountPath: /host-var/lib/kubelet/pod-resources/kubelet.sock
- name: host-sys
mountPath: /host-sys
- name: nfd-topology-updater-conf
mountPath: "/etc/kubernetes/node-feature-discovery"
readOnly: true
- op: add
path: /spec/template/spec/containers/0/args/-

View file

@ -19,3 +19,4 @@ components:
- ../../components/worker-config
- ../../components/common
- ../../components/topology-updater
- ../../components/topology-updater-config

View file

@ -16,3 +16,4 @@ resources:
components:
- ../../components/common
- ../../components/topology-updater
- ../../components/topology-updater-config