Skip to content

Commit

Permalink
clarify invalid values handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ahg-g committed Mar 10, 2021
1 parent f8b8759 commit 025f43f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions content/en/docs/concepts/workloads/controllers/replicaset.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,12 @@ ensures that a desired number of Pods with a matching label selector are availab
Using the `controller.kubernetes.io/pod-deletion-cost`, users can set a preference regarding
which pods to remove first when downscaling a ReplicSet.

The annotation should be set on the pod, the expected type is `int64`. It represents the cost of
The annotation should be set on the pod, the expected type is `int32`. It represents the cost of
deleting a pod compared to other pods belonging to the same ReplicaSet. Pods with lower deletion
cost are preferred to be deleted before pods with higher deletion cost. The implicit value for
this annotation for pods that don't set it is 0; negative values are permitted.
cost are preferred to be deleted before pods with higher deletion cost.

The implicit value for this annotation for pods that don't set it is 0; negative values are permitted.
Invalid values will be rejected by the kube-api-server.

This feature is alpha and disabled by default. You can enable it by setting the
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
Expand Down

0 comments on commit 025f43f

Please sign in to comment.