Skip to content

Commit 6e7bccc

Browse files
committed
Added Documents for cluster-autoscaler.kubernetes.io/enable-ds-eviction annotation.
1 parent a83cca3 commit 6e7bccc

File tree

1 file changed

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

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,21 @@ 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 is controlling whether a DaemonSet pod should be evicted or not by ClusterAutoscaler. This annotation needs to be specified on DaemonSet pods, not the DaemonSet object itself. In order to do that for all DaemonSet pods, it is sufficient to modify the pod spec in the DaemonSet object.
178+
179+
When this annotation is set to `true`, the Cluster Autoscaler is allowed to evict a DaemonSet Pod even if other rules would normally prevent that. To disable the DaemonSet pods eviction so that the Cluster Autoscaler never evicts DaemonSet pods, Explicitly set this annotation to `false`; you could set that on an important pod that you want to keep running.
180+
If this annotation is not set then the Cluster Autoscaler follows its overall behaviour.
181+
182+
{{< note >}}
183+
This annotation has no effect on pods that are not a part of any DaemonSet.
184+
{{< /note >}}
185+
171186
### kubernetes.io/ingress-bandwidth
172187

173188
{{< note >}}

0 commit comments

Comments
 (0)