mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 16:27:05 +00:00
deployment: use new rule format in sample custom rule overlay
This commit is contained in:
parent
09c1ff86ca
commit
468fa2b817
1 changed files with 15 additions and 7 deletions
|
@ -1,7 +1,15 @@
|
||||||
#- name: "more.kernel.features"
|
- name: "kernel module rule"
|
||||||
# matchOn:
|
labels:
|
||||||
# - loadedKMod: ["example_kmod3"]
|
"kernel-br_netfilter.present": "true"
|
||||||
#- name: "more.features.by.nodename"
|
matchFeatures:
|
||||||
# value: customValue
|
- feature: "kernel.loadedmodule"
|
||||||
# matchOn:
|
matchExpressions:
|
||||||
# - nodename: ["special-.*-node-.*"]
|
br_netfilter: {op: Exists}
|
||||||
|
|
||||||
|
- name: "nodename rule"
|
||||||
|
labels:
|
||||||
|
"nodename-rule.matches": "true"
|
||||||
|
matchFeatures:
|
||||||
|
- feature: "system.name"
|
||||||
|
matchExpressions:
|
||||||
|
nodename: {op: InRegexp, value: ["special-.*-node"]}
|
||||||
|
|
Loading…
Add table
Reference in a new issue