mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
57b6035b71
kubectl-nfd is a kubectl plugin for debbuging NodeFeatureRules Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
68 lines
1.3 KiB
Markdown
68 lines
1.3 KiB
Markdown
---
|
|
title: "Kubectl plugin cmdline reference"
|
|
layout: default
|
|
sort: 8
|
|
---
|
|
|
|
# Commandline flags of kubectl-nfd (plugin)
|
|
{: .no_toc}
|
|
|
|
## Table of contents
|
|
{: .no_toc .text-delta}
|
|
|
|
1. TOC
|
|
{:toc}
|
|
|
|
---
|
|
|
|
To quickly view available command line flags execute `kubectl nfd -help`.
|
|
|
|
### -h, -help
|
|
|
|
Print usage and exit.
|
|
|
|
## Validate
|
|
|
|
Validate a NodeFeatureRule file.
|
|
|
|
### -f / --nodefeature-file
|
|
|
|
The `--nodefeature-file` flag specifies the path to the NodeFeatureRule file
|
|
to validate.
|
|
|
|
## Test
|
|
|
|
Test a NodeFeatureRule file against a node without applying it.
|
|
|
|
### -k, --kubeconfig
|
|
|
|
The `--kubeconfig` flag specifies the path to the kubeconfig file to use for
|
|
CLI requests.
|
|
|
|
### -s, --namespace
|
|
|
|
The `--namespace` flag specifies the namespace to use for CLI requests.
|
|
Default: `default`.
|
|
|
|
### -n, --nodename
|
|
|
|
The `--nodename` flag specifies the name of the node to test the
|
|
NodeFeatureRule against.
|
|
|
|
### -f, --nodefeaturerule-file
|
|
|
|
The `--nodefeaturerule-file` flag specifies the path to the NodeFeatureRule file
|
|
to test.
|
|
|
|
## DryRun
|
|
|
|
Process a NodeFeatureRule file against a NodeFeature file.
|
|
|
|
### -f, --nodefeaturerule-file
|
|
|
|
The `--nodefeaturerule-file` flag specifies the path to the NodeFeatureRule file
|
|
to test.
|
|
|
|
### -n, --nodefeature-file
|
|
|
|
The `--nodefeature-file` flag specifies the path to the NodeFeature file to test.
|