Open
Description
Historically, running Kubernetes with swap enabled has been discouraged. However, with support for swap is looking to GA in 1.34, it is important for cluster administrators to have clear visibility into which nodes have swap configured.
This proposal suggests a custom-plugin for introduction of a new NodeCondition called SwapDetected
. This permanent condition would be set to True when swap memory is configured and active on a Kubernetes node.
The proposed approach involves:
- bash script to check for active swap by examining the output of
free -h
command or by reading/proc/swaps
. - config file that defines the
SwapDetected
permanent condition and rule to run the script at a regular interval (5s).
Metadata
Metadata
Assignees
Labels
No labels