|
42 | 42 | - [KubeConfig addition](#kubeconfig-addition)
|
43 | 43 | - [CRI Changes](#cri-changes)
|
44 | 44 | - [Swap Metrics](#swap-metrics)
|
| 45 | + - [Add swap support to NFD](#add-swap-support-to-nfd) |
45 | 46 | - [Test Plan](#test-plan)
|
46 | 47 | - [Prerequisite testing updates](#prerequisite-testing-updates)
|
47 | 48 | - [Unit tests](#unit-tests)
|
@@ -724,6 +725,30 @@ pods:
|
724 | 725 |
|
725 | 726 | (This output is simplified, for full examples please look at the description of: https://github.com/kubernetes/kubernetes/pull/118865)
|
726 | 727 |
|
| 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 | + |
727 | 752 | ### Test Plan
|
728 | 753 |
|
729 | 754 | <!--
|
|
0 commit comments