2023-03-05 21:56:46 +00:00
|
|
|
# noPublish: false
|
Option to stop implicitly adding default prefix to names
Add new autoDefaultNs (default is "true") config option to nfd-master.
Setting the config option to false stops NFD from automatically adding
the "feature.node.kubernetes.io/" prefix to labels, annotations and
extended resources. Taints are not affected as for them no prefix is
automatically added. The user-visible part of enabling the option change
is that NodeFeatureRules, local feature files, hooks and configuration
of the "custom" may need to be altereda (if the auto-prefixing is
relied on).
For now, the config option defaults to "true", meaning no change in
default behavior. However, the intent is to change the default to
"false" in a future release, deprecating the option and eventually
removing it (forcing it to "false").
The goal of stopping doing "auto-prefixing" is to simplify the operation
(of nfd and users). Make the naming more straightforward and easier to
understand and debug (kind of WYSIWYG), eliminating peculiar corner
cases:
1. Make validation simpler and unambiguous
2. Remove "overloading" of names, i.e. the mapping two values to the
same actual name. E.g. previously something like
labels:
feature.node.kubernetes.io/foo: bar
foo: baz
Could actually result in node label:
feature.node.kubernetes.io/foo: baz
3. Make the processing/usagee of the "rule.matched" and "local.labels"
feature in NodeFeatureRules unambiguous and more understadable. E.g.
previously you could have node label
"feature.node.kubernetes.io/local-foo: bar" but in the NodeFeatureRule
you'd need to use the unprefixed name "local-foo" or the fully
prefixed name, depending on what was specified in the feature file (or
hook) on the node(s).
NOTE: setting autoDefaultNs to false is a breaking change for users who
rely on automatic prefixing with the default feature.node.kubernetes.io/
namespace. NodeFeatureRules, feature files, hooks and custom rules
(configuration of the "custom" source of nfd-worker) will need to be
altered. Unprefixed labels, annoations and extended resources will be
denied by nfd-master.
2023-11-08 07:51:19 +00:00
|
|
|
# autoDefaultNs: true
|
2023-03-05 21:56:46 +00:00
|
|
|
# extraLabelNs: ["added.ns.io","added.kubernets.io"]
|
|
|
|
# denyLabelNs: ["denied.ns.io","denied.kubernetes.io"]
|
|
|
|
# resourceLabels: ["vendor-1.com/feature-1","vendor-2.io/feature-2"]
|
|
|
|
# enableTaints: false
|
|
|
|
# labelWhiteList: "foo"
|
2023-04-15 15:11:59 +00:00
|
|
|
# resyncPeriod: "2h"
|
2024-08-10 20:28:52 +00:00
|
|
|
# restrictions:
|
|
|
|
# disableLabels: true
|
|
|
|
# disableTaints: true
|
|
|
|
# disableExtendedResources: true
|
|
|
|
# disableAnnotations: true
|
|
|
|
# allowOverwrite: false
|
|
|
|
# denyNodeFeatureLabels: true
|
|
|
|
# nodeFeatureNamespaceSelector:
|
|
|
|
# matchLabels:
|
|
|
|
# kubernetes.io/metadata.name: "node-feature-discovery"
|
|
|
|
# matchExpressions:
|
|
|
|
# - key: "kubernetes.io/metadata.name"
|
|
|
|
# operator: "In"
|
|
|
|
# values:
|
|
|
|
# - "node-feature-discovery"
|
2023-09-06 15:04:26 +00:00
|
|
|
# klog:
|
|
|
|
# addDirHeader: false
|
|
|
|
# alsologtostderr: false
|
|
|
|
# logBacktraceAt:
|
|
|
|
# logtostderr: true
|
|
|
|
# skipHeaders: false
|
|
|
|
# stderrthreshold: 2
|
|
|
|
# v: 0
|
|
|
|
# vmodule:
|
|
|
|
## NOTE: the following options are not dynamically run-time configurable
|
|
|
|
## and require a nfd-master restart to take effect after being changed
|
|
|
|
# logDir:
|
|
|
|
# logFile:
|
|
|
|
# logFileMaxSize: 1800
|
|
|
|
# skipLogHeaders: false
|
2023-05-05 10:01:32 +00:00
|
|
|
# leaderElection:
|
|
|
|
# leaseDuration: 15s
|
|
|
|
# # this value has to be lower than leaseDuration and greater than retryPeriod*1.2
|
|
|
|
# renewDeadline: 10s
|
|
|
|
# # this value has to be greater than 0
|
|
|
|
# retryPeriod: 2s
|
2023-05-13 19:03:53 +00:00
|
|
|
# nfdApiParallelism: 10
|