mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +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"
|
||||
# matchOn:
|
||||
# - loadedKMod: ["example_kmod3"]
|
||||
#- name: "more.features.by.nodename"
|
||||
# value: customValue
|
||||
# matchOn:
|
||||
# - nodename: ["special-.*-node-.*"]
|
||||
- name: "kernel module rule"
|
||||
labels:
|
||||
"kernel-br_netfilter.present": "true"
|
||||
matchFeatures:
|
||||
- feature: "kernel.loadedmodule"
|
||||
matchExpressions:
|
||||
br_netfilter: {op: Exists}
|
||||
|
||||
- name: "nodename rule"
|
||||
labels:
|
||||
"nodename-rule.matches": "true"
|
||||
matchFeatures:
|
||||
- feature: "system.name"
|
||||
matchExpressions:
|
||||
nodename: {op: InRegexp, value: ["special-.*-node"]}
|
||||
|
|
Loading…
Reference in a new issue