Skip to content

Commit 2a0f109

Browse files
committed
docs: update config options list to include the kubelet config path
Signed-off-by: Feruzjon Muyassarov <[email protected]>
1 parent 162b557 commit 2a0f109

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

docs/reference/worker-commandline-reference.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,24 @@ Example:
8484
nfd-worker -kubeconfig ${HOME}/.kube/config
8585
```
8686

87+
### -kubelet-config-path
88+
89+
The `-kubeconfig-path` flag specifies the absolute path to the kubelet configuration
90+
file on the node. This configuration is primarily used by NFD to determine the
91+
swap behavior set on the node. Kubernetes currently supports two types of swap behavior
92+
`NoSwap` and `LimitedSwap`. It is important to note that even if swap is enabled at the
93+
system level, a setting of `NoSwap` in the kubelet configuration means that Kubernetes
94+
workloads will not be permitted to use swap space—although non-Kubernetes processes
95+
on the node may still do so.
96+
97+
Default: `/var/lib/kubelet/config.yaml`
98+
99+
Example:
100+
101+
```bash
102+
nfd-worker -kubeconfig-path /var/lib/kubelet/config.yaml
103+
```
104+
87105
### -feature-sources
88106

89107
The `-feature-sources` flag specifies a comma-separated list of enabled feature

docs/reference/worker-configuration-reference.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,17 @@ Comma-separated list of `pattern=N` settings for file-filtered logging.
245245

246246
Default: *empty*
247247

248+
### core.kubeletConfigPath
249+
250+
Specifies the absolute path to the kubelet configuration file on the node. This
251+
configuration is primarily used by NFD to determine the swap behavior set on the node.
252+
Kubernetes currently supports two types of swap behavior `NoSwap` and `LimitedSwap`.
253+
It is important to note that even if swap is enabled at the system level, a setting of
254+
`NoSwap` in the kubelet configuration means that Kubernetes workloads will not be
255+
permitted to use swap space—although non-Kubernetes processes on the node may still do so.
256+
257+
Default: `/var/lib/kubelet/config.yaml`
258+
248259
## sources
249260

250261
The `sources` section contains feature source specific configuration parameters.

0 commit comments

Comments
 (0)