NFD-GC Commandline Flags

Table of Contents

  1. -h, -help
  2. -version
  3. -list-size
  4. -gc-interval
  5. -port

To quickly view available command line flags execute nfd-gc -help. In a docker container:

docker run registry.k8s.io/nfd/node-feature-discovery:v0.18.0 \
nfd-gc -help

-h, -help

Print usage and exit.

-version

Print version and exit.

-list-size

The pagination size to use when calling api-server to list nodefeatures. Pagination is useful for controlling the load on api-server/etcd as the nodefeature resources can be large. A value of 0 will disable pagination.

Default: 200

Example:

nfd-gc -list-size=100

-gc-interval

The -gc-interval specifies the interval between periodic garbage collector runs.

Default: 1h

Example:

nfd-gc -gc-interval=1h

-port

The -port flag specifies the port on which metrics are served on.

Default: 8080

Example:

nfd-gc -port=12345