Skip to content

Commit b22651a

Browse files
authored
Merge pull request #35846 from mk46/safe-to-evict
Register and document cluster-autoscaler `safe-to-evict` annotation
2 parents c285ac1 + 098d3aa commit b22651a

File tree

1 file changed

+12
-0
lines changed
  • content/en/docs/reference/labels-annotations-taints

1 file changed

+12
-0
lines changed

content/en/docs/reference/labels-annotations-taints/_index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ The current version of the application (e.g., a semantic version, revision hash,
8787

8888
One of the [recommended labels](/docs/concepts/overview/working-with-objects/common-labels/#labels).
8989

90+
### cluster-autoscaler.kubernetes.io/safe-to-evict
91+
92+
Example: `cluster-autoscaler.kubernetes.io/safe-to-evict: "true"`
93+
94+
Used on: Pod
95+
96+
When this annotation is set to `"true"`, the cluster autoscaler is allowed to evict a Pod
97+
even if other rules would normally prevent that.
98+
The cluster autoscaler never evicts Pods that have this annotation explicitly set to
99+
`"false"`; you could set that on an important Pod that you want to keep running.
100+
If this annotation is not set then the cluster autoscaler follows its Pod-level behavior.
101+
90102
### kubernetes.io/arch
91103

92104
Example: `kubernetes.io/arch: "amd64"`

0 commit comments

Comments
 (0)