karpenter.sh/do-not-evict: true

From wikieduonline
Revision as of 15:54, 19 January 2023 by Ant (talk | contribs)
Jump to navigation Jump to search

Pods without an ownerRef (also called “controllerless” or "naked pods") will be evicted during voluntary node disruption, such as expiration or consolidation. A pod with the annotations: karpenter.sh/do-not-evict: true will cause its node to be opted out from voluntary node disruption workflows.

kubectl annotate pod your-pod-name karpenter.sh/do-not-evict='true' -n yournamespace
your-pod-name annotated


kubectl annotate

Eviction

  • Consolidation
  • Emptiness
  • Expiration

Related

controller.node Triggering termination for expired node after 168h0m0s .../...

See also

Advertising: