NodeFeatureRule
nfd.k8s-sigs.io / v1alpha1
apiVersion: nfd.k8s-sigs.io/v1alpha1
kind: NodeFeatureRule
metadata:
name: example
apiVersion
string
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind
string
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata
object
spec object required
Spec defines the rules to be evaluated.
rules []object required
Rules is a list of node customization rules.
annotations
object
Annotations to create if the rule matches.
extendedResources
object
ExtendedResources to create if the rule matches.
labels
object
Labels to create if the rule matches.
labelsTemplate
string
LabelsTemplate specifies a template to expand for dynamically generating
multiple labels. Data (after template expansion) must be keys with an
optional value (<key>[=<value>]) separated by newlines.
matchAny []object
MatchAny specifies a list of matchers one of which must match.
matchFeatures []object required
MatchFeatures specifies a set of matcher terms all of which must match.
feature
string required
Feature is the name of the feature set to match against.
matchExpressions
object
MatchExpressions is the set of per-element expressions evaluated. These
match against the value of the specified elements.
matchName object
MatchName in an expression that is matched against the name of each
element in the feature set.
op
string required
Op is the operator to be applied.
enum:
In, NotIn, InRegexp, Exists, DoesNotExist, Gt, Ge, Lt, Le, GtLt, GeLe, IsTrue, IsFalse
type
string
Type defines the value type for specific operators.
The currently supported type is 'version' for Gt,Ge,Lt,Le,GtLt,GeLe operators.
value
[]string
Value is the list of values that the operand evaluates the input
against. Value should be empty if the operator is Exists, DoesNotExist,
IsTrue or IsFalse. Value should contain exactly one element if the
operator is Gt or Lt and exactly two elements if the operator is GtLt.
In other cases Value should contain at least one element.
matchFeatures []object
MatchFeatures specifies a set of matcher terms all of which must match.
feature
string required
Feature is the name of the feature set to match against.
matchExpressions
object
MatchExpressions is the set of per-element expressions evaluated. These
match against the value of the specified elements.
matchName object
MatchName in an expression that is matched against the name of each
element in the feature set.
op
string required
Op is the operator to be applied.
enum:
In, NotIn, InRegexp, Exists, DoesNotExist, Gt, Ge, Lt, Le, GtLt, GeLe, IsTrue, IsFalse
type
string
Type defines the value type for specific operators.
The currently supported type is 'version' for Gt,Ge,Lt,Le,GtLt,GeLe operators.
value
[]string
Value is the list of values that the operand evaluates the input
against. Value should be empty if the operator is Exists, DoesNotExist,
IsTrue or IsFalse. Value should contain exactly one element if the
operator is Gt or Lt and exactly two elements if the operator is GtLt.
In other cases Value should contain at least one element.
name
string required
Name of the rule.
taints []object
Taints to create if the rule matches.
effect
string required
Required. The effect of the taint on pods
that do not tolerate the taint.
Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
key
string required
Required. The taint key to be applied to a node.
timeAdded
string
TimeAdded represents the time at which the taint was added.
It is only written for NoExecute taints.
format:
date-time
value
string
The taint value corresponding to the taint key.
vars
object
Vars is the variables to store if the rule matches. Variables do not
directly inflict any changes in the node object. However, they can be
referenced from other rules enabling more complex rule hierarchies,
without exposing intermediary output values as labels.
varsTemplate
string
VarsTemplate specifies a template to expand for dynamically generating
multiple variables. Data (after template expansion) must be keys with an
optional value (<key>[=<value>]) separated by newlines.
No matches. Try .spec.rules for an exact path