-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27739 from shannonxtreme/pod-eviction
Create pod eviction concept topic
- Loading branch information
Showing
15 changed files
with
531 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,37 @@ | ||
--- | ||
title: "Scheduling, Preemption and Eviction" | ||
weight: 90 | ||
content_type: concept | ||
description: > | ||
In Kubernetes, scheduling refers to making sure that Pods are matched to Nodes | ||
so that the kubelet can run them. Preemption is the process of terminating | ||
Pods with lower Priority so that Pods with higher Priority can schedule on | ||
Nodes. Eviction is the process of proactively terminating one or more Pods on | ||
resource-starved Nodes. | ||
no_list: true | ||
--- | ||
|
||
In Kubernetes, scheduling refers to making sure that {{<glossary_tooltip text="Pods" term_id="pod">}} | ||
are matched to {{<glossary_tooltip text="Nodes" term_id="node">}} so that the | ||
{{<glossary_tooltip text="kubelet" term_id="kubelet">}} can run them. Preemption | ||
is the process of terminating Pods with lower {{<glossary_tooltip text="Priority" term_id="pod-priority">}} | ||
so that Pods with higher Priority can schedule on Nodes. Eviction is the process | ||
of terminating one or more Pods on Nodes. | ||
|
||
## Scheduling | ||
|
||
* [Kubernetes Scheduler](/docs/concepts/scheduling-eviction/kube-scheduler/) | ||
* [Assigning Pods to Nodes](/docs/concepts/scheduling-eviction/assign-pod-node/) | ||
* [Pod Overhead](/docs/concepts/scheduling-eviction/pod-overhead/) | ||
* [Taints and Tolerations](/docs/concepts/scheduling-eviction/taint-and-toleration/) | ||
* [Scheduling Framework](/docs/concepts/scheduling-eviction/scheduling-framework) | ||
* [Scheduler Performance Tuning](/docs/concepts/scheduling-eviction/scheduler-perf-tuning/) | ||
* [Resource Bin Packing for Extended Resources](/docs/concepts/scheduling-eviction/resource-bin-packing/) | ||
|
||
## Pod Disruption | ||
|
||
{{<glossary_definition term_id="pod-disruption" length="all">}} | ||
|
||
* [Pod Priority and Preemption](/docs/concepts/scheduling-eviction/pod-priority-preemption/) | ||
* [Node-pressure Eviction](/docs/concepts/scheduling-eviction/node-pressure-eviction/) | ||
* [API-initiated Eviction](/docs/concepts/scheduling-eviction/api-eviction/) |
19 changes: 19 additions & 0 deletions
19
content/en/docs/concepts/scheduling-eviction/api-eviction.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: API-initiated Eviction | ||
content_type: concept | ||
weight: 70 | ||
--- | ||
|
||
{{< glossary_definition term_id="api-eviction" length="short" >}} </br> | ||
|
||
You can request eviction by directly calling the Eviction API | ||
using a client of the kube-apiserver, like the `kubectl drain` command. | ||
This creates an `Eviction` object, which causes the API server to terminate the Pod. | ||
|
||
API-initiated evictions respect your configured [`PodDisruptionBudgets`](/docs/tasks/run-application/configure-pdb/) | ||
and [`terminationGracePeriodSeconds`](/docs/concepts/workloads/pods/pod-lifecycle#pod-termination). | ||
|
||
## {{% heading "whatsnext" %}} | ||
|
||
* Learn about [Node-pressure Eviction](/docs/concepts/scheduling-eviction/node-pressure-eviction/) | ||
* Learn about [Pod Priority and Preemption](/docs/concepts/scheduling-eviction/pod-priority-preemption/) |
24 changes: 0 additions & 24 deletions
24
content/en/docs/concepts/scheduling-eviction/eviction-policy.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.