Skip to content

Commit 7734a8e

Browse files
committed
API Changes - Add swap support to NFD
Signed-off-by: Itamar Holder <[email protected]>
1 parent f26d20e commit 7734a8e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

keps/sig-node/2400-node-swap/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
- [KubeConfig addition](#kubeconfig-addition)
4343
- [CRI Changes](#cri-changes)
4444
- [Swap Metrics](#swap-metrics)
45+
- [Add swap support to NFD](#add-swap-support-to-nfd)
4546
- [Test Plan](#test-plan)
4647
- [Prerequisite testing updates](#prerequisite-testing-updates)
4748
- [Unit tests](#unit-tests)
@@ -724,6 +725,30 @@ pods:
724725

725726
(This output is simplified, for full examples please look at the description of: https://github.com/kubernetes/kubernetes/pull/118865)
726727

728+
#### Add swap support to NFD
729+
730+
Although not directly related to API changes since NFD is out-of-tree, bringing swap support to NFD is extremely
731+
valuable and relevant.
732+
It allows deferring the API changes discussion to the follow-up KEP that will focus on this subject specifically
733+
(for more info on the scope of this KEP and the follow-up KEPs look at the summary section above).
734+
735+
With NFD, the end-user would be able to easily understand which nodes have swap enabled.
736+
In the following example, only worker nodes 1 and 3 have swap enabled.
737+
The user would be possible to easily check which nodes have swap enabled by performing the following:
738+
739+
```shell
740+
> kubectl get nodes
741+
NAME STATUS ROLES AGE VERSION
742+
k8s-dev-control-plane Ready control-plane 78s v1.30.0
743+
k8s-dev-worker1 Ready <none> 66s v1.30.0
744+
k8s-dev-worker2 Ready <none> 66s v1.30.0
745+
k8s-dev-worker3 Ready <none> 66s v1.30.0
746+
747+
> kubectl get nodes -o custom-columns=NAME:.metadata.name,LABELS:.metadata.labels | grep memory-swap:true | cut -d" " -f1
748+
k8s-dev-worker1
749+
k8s-dev-worker3
750+
```
751+
727752
### Test Plan
728753

729754
<!--

0 commit comments

Comments
 (0)