Skip to content

Feature Request: Add SwapDetected Condition #1072

Open
@ajaysundark

Description

@ajaysundark

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:

  1. bash script to check for active swap by examining the output of free -h command or by reading /proc/swaps.
  2. config file that defines the SwapDetected permanent condition and rule to run the script at a regular interval (5s).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions