Skip to content

Commit

Permalink
round kubernetes#1
Browse files Browse the repository at this point in the history
  • Loading branch information
ahg-g committed Mar 15, 2021
1 parent 025f43f commit 891a8ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions content/en/docs/concepts/workloads/controllers/replicaset.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ ensures that a desired number of Pods with a matching label selector are availab
### Pod Deletion Cost
{{< feature-state for_k8s_version="v1.21" state="alpha" >}}

Using the `controller.kubernetes.io/pod-deletion-cost`, users can set a preference regarding
Using the `controller.kubernetes.io/pod-deletion-cost` annotation, 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 `int32`. It represents the cost of
The annotation should be set on the pod, and 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.

Expand All @@ -328,7 +328,7 @@ This feature is alpha and disabled by default. You can enable it by setting the
`PodDeletionCost` in both kube-apiserver and kube-controller-manager.

#### Warnings:
- This is honored on a best-effort basis, and so it does not offer any guarantees on pod deletion order.
- This is honored on a best-effort basis, so it does not offer any guarantees on pod deletion order.
- Users should avoid updating the annotation frequently (e.g., updating it based on a metric value)
because doing so will generate a significant number of pod updates on the apiserver.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ Each feature gate is designed for enabling/disabling a specific feature:
- `PVCProtection`: Enable the prevention of a PersistentVolumeClaim (PVC) from
being deleted when it is still used by any Pod.
- `PodDeletionCost`: Enable the [Pod Deletion Cost](/docs/content/en/docs/concepts/workloads/controllers/replicaset/#pod-deletion-cost)
feature which allow users to influence Replicaset downscaling order.
feature which allows users to influence ReplicaSet downscaling order.
- `PersistentLocalVolumes`: Enable the usage of `local` volume type in Pods.
Pod affinity has to be specified if requesting a `local` volume.
- `PodDisruptionBudget`: Enable the [PodDisruptionBudget](/docs/tasks/run-application/configure-pdb/) feature.
Expand Down

0 comments on commit 891a8ab

Please sign in to comment.