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:
parent
03b67f8d6a
commit
3737e0f6a3
3 changed files with 38 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
|||
#- name: "more.kernel.features"
|
||||
# matchOn:
|
||||
# - loadedKMod: ["example_kmod3"]
|
||||
#- name: "more.features.by.nodename"
|
||||
# value: customValue
|
||||
# matchOn:
|
||||
# - nodename: ["special-.*-node-.*"]
|
18
deployment/overlays/samples/custom-rules/kustomization.yaml
Normal file
18
deployment/overlays/samples/custom-rules/kustomization.yaml
Normal 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
|
13
deployment/overlays/samples/custom-rules/mounts.yaml
Normal file
13
deployment/overlays/samples/custom-rules/mounts.yaml
Normal 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
|
Loading…
Add table
Reference in a new issue