Skip to content

Commit e172ca8

Browse files
authored
Merge pull request #161 from k8s-infra-cherrypick-robot/cherry-pick-160-to-release-0.5
[release-0.5] docs: update nfd-worker sample config
2 parents de24a0e + 6fc40bd commit e172ca8

File tree

1 file changed

+74
-31
lines changed

1 file changed

+74
-31
lines changed

docs/advanced/nodefeaturediscovery.md

Lines changed: 74 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ spec:
3434
# labelWhiteList:
3535
# noPublish: false
3636
# sleepInterval: 60s
37-
# sources: [all]
37+
# featureSources: [all]
38+
# labelSources: [all]
3839
# klog:
3940
# addDirHeader: false
4041
# alsologtostderr: false
@@ -75,8 +76,8 @@ spec:
7576
# - "SSE"
7677
# - "SSE2"
7778
# - "SSE3"
78-
# - "SSE4.1"
79-
# - "SSE4.2"
79+
# - "SSE4"
80+
# - "SSE42"
8081
# - "SSSE3"
8182
# attributeWhitelist:
8283
# kernel:
@@ -107,34 +108,76 @@ spec:
107108
# - "vendor"
108109
# - "device"
109110
# custom:
110-
# - name: "my.kernel.feature"
111-
# matchOn:
112-
# - loadedKMod: ["example_kmod1", "example_kmod2"]
113-
# - name: "my.pci.feature"
114-
# matchOn:
115-
# - pciId:
116-
# class: ["0200"]
117-
# vendor: ["15b3"]
118-
# device: ["1014", "1017"]
119-
# - pciId :
120-
# vendor: ["8086"]
121-
# device: ["1000", "1100"]
122-
# - name: "my.usb.feature"
123-
# matchOn:
124-
# - usbId:
125-
# class: ["ff"]
126-
# vendor: ["03e7"]
127-
# device: ["2485"]
128-
# - usbId:
129-
# class: ["fe"]
130-
# vendor: ["1a6e"]
131-
# device: ["089a"]
132-
# - name: "my.combined.feature"
133-
# matchOn:
134-
# - pciId:
135-
# vendor: ["15b3"]
136-
# device: ["1014", "1017"]
137-
# loadedKMod : ["vendor_kmod1", "vendor_kmod2"]
111+
# # The following feature demonstrates the capabilities of the matchFeatures
112+
# - name: "my custom rule"
113+
# labels:
114+
# my-ng-feature: "true"
115+
# # matchFeatures implements a logical AND over all matcher terms in the
116+
# # list (i.e. all of the terms, or per-feature matchers, must match)
117+
# matchFeatures:
118+
# - feature: cpu.cpuid
119+
# matchExpressions:
120+
# AVX512F: {op: Exists}
121+
# - feature: cpu.cstate
122+
# matchExpressions:
123+
# enabled: {op: IsTrue}
124+
# - feature: cpu.pstate
125+
# matchExpressions:
126+
# no_turbo: {op: IsFalse}
127+
# scaling_governor: {op: In, value: ["performance"]}
128+
# - feature: cpu.rdt
129+
# matchExpressions:
130+
# RDTL3CA: {op: Exists}
131+
# - feature: cpu.sst
132+
# matchExpressions:
133+
# bf.enabled: {op: IsTrue}
134+
# - feature: cpu.topology
135+
# matchExpressions:
136+
# hardware_multithreading: {op: IsFalse}
137+
#
138+
# - feature: kernel.config
139+
# matchExpressions:
140+
# X86: {op: Exists}
141+
# LSM: {op: InRegexp, value: ["apparmor"]}
142+
# - feature: kernel.loadedmodule
143+
# matchExpressions:
144+
# e1000e: {op: Exists}
145+
# - feature: kernel.selinux
146+
# matchExpressions:
147+
# enabled: {op: IsFalse}
148+
# - feature: kernel.version
149+
# matchExpressions:
150+
# major: {op: In, value: ["5"]}
151+
# minor: {op: Gt, value: ["10"]}
152+
#
153+
# - feature: storage.block
154+
# matchExpressions:
155+
# rotational: {op: In, value: ["0"]}
156+
# dax: {op: In, value: ["0"]}
157+
#
158+
# - feature: network.device
159+
# matchExpressions:
160+
# operstate: {op: In, value: ["up"]}
161+
# speed: {op: Gt, value: ["100"]}
162+
#
163+
# - feature: memory.numa
164+
# matchExpressions:
165+
# node_count: {op: Gt, value: ["2"]}
166+
# - feature: memory.nv
167+
# matchExpressions:
168+
# devtype: {op: In, value: ["nd_dax"]}
169+
# mode: {op: In, value: ["memory"]}
170+
#
171+
# - feature: system.osrelease
172+
# matchExpressions:
173+
# ID: {op: In, value: ["fedora", "centos"]}
174+
# - feature: system.name
175+
# matchExpressions:
176+
# nodename: {op: InRegexp, value: ["^worker-X"]}
177+
#
178+
# - feature: local.label
179+
# matchExpressions:
180+
# custom-feature-knob: {op: Gt, value: ["100"]}
138181
```
139182
140183
For more information about how to setup the `WorkerConfig` stanza,

0 commit comments

Comments
 (0)