Skip to content

Commit b9a16ae

Browse files
authored
Merge pull request #35897 from Shubham82/enable-ds-eviction
Added Documents for cluster-autoscaler.kubernetes.io/enable-ds-eviction annotation.
2 parents ab59972 + 9fe4a5e commit b9a16ae

File tree

1 file changed

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

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,23 @@ Used on: Pod
168168
This annotation is used to set [Pod Deletion Cost](/docs/concepts/workloads/controllers/replicaset/#pod-deletion-cost)
169169
which allows users to influence ReplicaSet downscaling order. The annotation parses into an `int32` type.
170170

171+
### cluster-autoscaler.kubernetes.io/enable-ds-eviction
172+
173+
Example: `cluster-autoscaler.kubernetes.io/enable-ds-eviction: "true"`
174+
175+
Used on: Pod
176+
177+
This annotation controls whether a DaemonSet pod should be evicted by a ClusterAutoscaler.
178+
This annotation needs to be specified on DaemonSet pods in a DaemonSet manifest.
179+
When this annotation is set to `"true"`, the ClusterAutoscaler is allowed to evict a DaemonSet Pod,
180+
even if other rules would normally prevent that. To disallow the ClusterAutoscaler from evicting DaemonSet pods,
181+
you can set this annotation to `"false"` for important DaemonSet pods.
182+
If this annotation is not set, then the Cluster Autoscaler follows its overall behaviour (i.e evict the DaemonSets based on its configuration).
183+
184+
{{< note >}}
185+
This annotation only impacts DaemonSet pods.
186+
{{< /note >}}
187+
171188
### kubernetes.io/ingress-bandwidth
172189

173190
{{< note >}}

0 commit comments

Comments
 (0)