Merge pull request #28235 from SergeyKanzhelev/clarificationOnShutdownStatus
Clarification of a new shutdown status of a pod
This commit is contained in:
@@ -283,7 +283,7 @@ The node eviction behavior changes when a node in a given availability zone
|
|||||||
becomes unhealthy. The node controller checks what percentage of nodes in the zone
|
becomes unhealthy. The node controller checks what percentage of nodes in the zone
|
||||||
are unhealthy (NodeReady condition is ConditionUnknown or ConditionFalse) at
|
are unhealthy (NodeReady condition is ConditionUnknown or ConditionFalse) at
|
||||||
the same time:
|
the same time:
|
||||||
- If the fraction of unhealthy nodes is at least `--unhealthy-zone-threshold`
|
- If the fraction of unhealthy nodes is at least `--unhealthy-zone-threshold`
|
||||||
(default 0.55), then the eviction rate is reduced.
|
(default 0.55), then the eviction rate is reduced.
|
||||||
- If the cluster is small (i.e. has less than or equal to
|
- If the cluster is small (i.e. has less than or equal to
|
||||||
`--large-cluster-size-threshold` nodes - default 50), then evictions are stopped.
|
`--large-cluster-size-threshold` nodes - default 50), then evictions are stopped.
|
||||||
@@ -377,6 +377,21 @@ For example, if `ShutdownGracePeriod=30s`, and
|
|||||||
for gracefully terminating normal pods, and the last 10 seconds would be
|
for gracefully terminating normal pods, and the last 10 seconds would be
|
||||||
reserved for terminating [critical pods](/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical).
|
reserved for terminating [critical pods](/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical).
|
||||||
|
|
||||||
|
{{< note >}}
|
||||||
|
When pods were evicted during the graceful node shutdown, they are marked as failed.
|
||||||
|
Running `kubectl get pods` shows the status of the the evicted pods as `Shutdown`.
|
||||||
|
And `kubectl describe pod` indicates that the pod was evicted because of node shutdown:
|
||||||
|
|
||||||
|
```
|
||||||
|
Status: Failed
|
||||||
|
Reason: Shutdown
|
||||||
|
Message: Node is shutting, evicting pods
|
||||||
|
```
|
||||||
|
|
||||||
|
Failed pod objects will be preserved until explicitly deleted or [cleaned up by the GC](/docs/concepts/workloads/pods/pod-lifecycle/#pod-garbage-collection).
|
||||||
|
This is a change of behavior compared to abrupt node termination.
|
||||||
|
{{< /note >}}
|
||||||
|
|
||||||
## {{% heading "whatsnext" %}}
|
## {{% heading "whatsnext" %}}
|
||||||
|
|
||||||
* Learn about the [components](/docs/concepts/overview/components/#node-components) that make up a node.
|
* Learn about the [components](/docs/concepts/overview/components/#node-components) that make up a node.
|
||||||
|
|||||||
Reference in New Issue
Block a user