Skip to content

Add support for pods to differentiate between a scale down and a shutdown events #131823

@mattrpav

Description

@mattrpav

Enhancement Description

  • Support an optional lifecycle hook for signaling scale down
    or
  • Support a flag or argument to existing PreStop lifecycle hook to indicate scale down

Background

Currently, there is not a way for a workload running in pod to differentiate between a scale down and a shutdown. Pod shutdown down scenarios are common for upgrades, Kuberentes patching, or moving the pod to a different node for Node patching.

Maintenance windows would be lower for stateful workloads if they were able to differentiate between scale down and shutdown in order to only handle draining or transferring of data during scale down, instead of having to drain for every shutdown scenario.

/sig apps

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/appsCategorizes an issue or PR as relevant to SIG Apps.

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions