1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-28 18:57:10 +00:00

kustomize: add an example custom rules configmap

Add an example kustomize overlay for deploying a configmap specifying
extra rules for the custom feature source.
This commit is contained in:
Markus Lehtonen 2021-03-15 14:57:18 +02:00
parent 03b67f8d6a
commit 3737e0f6a3
3 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#- name: "more.kernel.features"
# matchOn:
# - loadedKMod: ["example_kmod3"]
#- name: "more.features.by.nodename"
# value: customValue
# matchOn:
# - nodename: ["special-.*-node-.*"]

View file

@ -0,0 +1,18 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: node-feature-discovery
resources:
- ../../default
configMapGenerator:
- name: custom-source-extra-rules-1
files:
- custom.conf=custom-rules.example.yaml
patches:
- path: mounts.yaml
target:
labelSelector: app=nfd
name: nfd-worker

View file

@ -0,0 +1,13 @@
- op: add
path: /spec/template/spec/volumes/-
value:
name: custom-source-extra-rules-1
configMap:
name: custom-source-extra-rules-1
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: custom-source-extra-rules-1
mountPath: /etc/kubernetes/node-feature-discovery/custom.d/extra-rules-1
readOnly: true