1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-04-15 00:36:23 +00:00
node-feature-discovery/docs/reference/gc-commandline-reference.md

59 lines
878 B
Markdown
Raw Normal View History

---
2023-08-18 14:38:13 +03:00
title: "Garbage Collector Cmdline Reference"
layout: default
sort: 7
---
2023-08-18 14:38:13 +03:00
# NFD-GC Commandline Flags
{: .no_toc }
## Table of Contents
{: .no_toc .text-delta }
1. TOC
{:toc}
---
2023-08-18 14:38:13 +03:00
To quickly view available command line flags execute `nfd-gc -help`.
In a docker container:
```bash
docker run {{ site.container_image }} \
2023-08-18 14:38:13 +03:00
nfd-gc -help
```
### -h, -help
Print usage and exit.
### -version
Print version and exit.
2025-01-04 17:48:13 -08:00
### -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.
2025-01-04 17:54:18 -08:00
A value of 0 will disable pagination.
Default: 200
Example:
```bash
nfd-gc -list-size=100
```
2025-01-04 17:48:13 -08:00
### -gc-interval
The `-gc-interval` specifies the interval between periodic garbage collector runs.
Default: 1h
Example:
```bash
2023-08-18 14:38:13 +03:00
nfd-gc -gc-interval=1h
```