Skip to content

Commit

Permalink
Implement reviewer edits
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonxtreme committed Apr 28, 2021
1 parent 951c4c1 commit 108a1fb
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions content/en/docs/concepts/scheduling-eviction/pod-eviction.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ Eviction is the process by which pods in a node are gracefully terminated.

In Kubernetes, there are two types of pod eviction:

1. Manual eviction: Uses the [Eviction API](/docs/reference/generated/kubernetes-api/v1.21/#create-eviction-pod-v1-core)
to create an `Eviction` object that gracefully terminates pods.
1. Manual eviction
2. Out-of-resource eviction (kubelet eviction)

{{<caution>}}
Expand All @@ -19,7 +18,7 @@ with manual eviction. Do not use the two eviction types interchangeably.

## Manual eviction

{{<glossary_definition term_id="manual-eviction" length="all">}
{{<glossary_definition term_id="manual-eviction" length="all">}}

Manual evictions respect your configured [`PodDisruptionBudgets`](/docs/tasks/run-application/configure-pdb/).

Expand Down Expand Up @@ -278,15 +277,24 @@ In some cases, pod eviction only reclaims a small amount of the starved resource
This can lead to the kubelet repeatedly hitting the configured eviction thresholds
and triggering multiple evictions.

You can use the `eviction-minimum-reclaim` flag to configure a minimum reclaim
amount for each resource. When the kubelet notices that a resource is starved,
it continues to reclaim that resource until it reclaims the quantity you specify.
You can use the `--eviction-minimum-reclaim` flag or a [kubelet config file](/docs/tasks/administer-cluster/kubelet-config-file/)
to configure a minimum reclaim amount for each resource. When the kubelet notices
that a resource is starved, it continues to reclaim that resource until it
reclaims the quantity you specify.

For example, the following configuration sets minimum reclaim amounts:

```
--eviction-hard=memory.available<500Mi,nodefs.available<1Gi,imagefs.available<100Gi
--eviction-minimum-reclaim="memory.available=0Mi,nodefs.available=500Mi,imagefs.available=2Gi"`
```yaml
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
evictionHard:
memory.available: "500Mi"
nodefs.available: "1Gi"
imagefs.available: "100Gi"
evictionMinimumReclaim:
memory.available: "0Mi"
nodefs.available: "500Mi"
imagefs.available: "2Gi"
```

In this example, if the `nodefs.available` signal meets the eviction threshold,
Expand Down

0 comments on commit 108a1fb

Please sign in to comment.