Skip to content

CKS: add the out-of-service taint to a node whose VM is down #14753

Open

Description

@bhouse-nexthop

As an operator I would like CKS to tell Kubernetes when a node's VM is down, so stateful pods on that node move to other nodes.

today wanted
A node VM stops (host failure, crash, out-of-band stop). Kubernetes marks the node NotReady but keeps its volumes attached. StatefulSet pods with RWO volumes (e.g. Ceph RBD via ceph-csi) stay stuck until the node returns. CloudStack knows the VM is not running, so CKS adds node.kubernetes.io/out-of-service=nodeshutdown:NoExecute to the node. Kubernetes' non-graceful node shutdown handling (default on from 1.26, GA in 1.28) then force-detaches the volumes and reschedules the pods. The taint is removed when the VM runs again.

Notes:

  • Only when CloudStack is sure the VM is down (Stopped / Destroyed / Expunging), never for transitional or unknown states.
  • Not during CKS's own scale, stop, upgrade or node removal.
  • Opt-in, since force-detach is only safe where a stopped VM is really powered off.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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