mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-28 14:41:10 +01:00
clarify which version PodLifeTime introduced states parameter and deprecated podStatusPhases
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
This commit is contained in:
21
README.md
21
README.md
@@ -528,17 +528,20 @@ You can also specify `states` parameter to **only** evict pods matching the foll
|
|||||||
- [Pod Phase](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase) status of: `Running`, `Pending`
|
- [Pod Phase](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase) status of: `Running`, `Pending`
|
||||||
- [Container State Waiting](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-state-waiting) condition of: `PodInitializing`, `ContainerCreating`
|
- [Container State Waiting](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-state-waiting) condition of: `PodInitializing`, `ContainerCreating`
|
||||||
|
|
||||||
|
If a value for `states` or `podStatusPhases` is not specified,
|
||||||
|
Pods in any state (even `Running`) are considered for eviction.
|
||||||
|
|
||||||
**Parameters:**
|
**Parameters:**
|
||||||
|
|
||||||
|Name|Type|
|
|Name|Type|Notes|
|
||||||
|---|---|
|
|---|---|---|
|
||||||
|`maxPodLifeTimeSeconds`|int|
|
|`maxPodLifeTimeSeconds`|int||
|
||||||
|`podStatusPhases` (**Deprecated**. Use `states` instead)|list(string)|
|
|`podStatusPhases`|list(string)|Deprecated in v0.25+ Use `states` instead|
|
||||||
|`states`|list(string)|
|
|`states`|list(string)|Only supported in v0.25+|
|
||||||
|`thresholdPriority`|int (see [priority filtering](#priority-filtering))|
|
|`thresholdPriority`|int (see [priority filtering](#priority-filtering))||
|
||||||
|`thresholdPriorityClassName`|string (see [priority filtering](#priority-filtering))|
|
|`thresholdPriorityClassName`|string (see [priority filtering](#priority-filtering))||
|
||||||
|`namespaces`|(see [namespace filtering](#namespace-filtering))|
|
|`namespaces`|(see [namespace filtering](#namespace-filtering))||
|
||||||
|`labelSelector`|(see [label filtering](#label-filtering))|
|
|`labelSelector`|(see [label filtering](#label-filtering))||
|
||||||
|
|
||||||
**Example:**
|
**Example:**
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user