Skip to content

Commit 9b49165

Browse files
authored
Merge pull request #28235 from SergeyKanzhelev/clarificationOnShutdownStatus
Clarification of a new shutdown status of a pod
2 parents 12c57e6 + 4bb1fc1 commit 9b49165

File tree

1 file changed

+16
-1
lines changed
  • content/en/docs/concepts/architecture

1 file changed

+16
-1
lines changed

content/en/docs/concepts/architecture/nodes.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ The node eviction behavior changes when a node in a given availability zone
283283
becomes unhealthy. The node controller checks what percentage of nodes in the zone
284284
are unhealthy (NodeReady condition is ConditionUnknown or ConditionFalse) at
285285
the same time:
286-
- If the fraction of unhealthy nodes is at least `--unhealthy-zone-threshold`
286+
- If the fraction of unhealthy nodes is at least `--unhealthy-zone-threshold`
287287
(default 0.55), then the eviction rate is reduced.
288288
- If the cluster is small (i.e. has less than or equal to
289289
`--large-cluster-size-threshold` nodes - default 50), then evictions are stopped.
@@ -377,6 +377,21 @@ For example, if `ShutdownGracePeriod=30s`, and
377377
for gracefully terminating normal pods, and the last 10 seconds would be
378378
reserved for terminating [critical pods](/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical).
379379

380+
{{< note >}}
381+
When pods were evicted during the graceful node shutdown, they are marked as failed.
382+
Running `kubectl get pods` shows the status of the the evicted pods as `Shutdown`.
383+
And `kubectl describe pod` indicates that the pod was evicted because of node shutdown:
384+
385+
```
386+
Status: Failed
387+
Reason: Shutdown
388+
Message: Node is shutting, evicting pods
389+
```
390+
391+
Failed pod objects will be preserved until explicitly deleted or [cleaned up by the GC](/docs/concepts/workloads/pods/pod-lifecycle/#pod-garbage-collection).
392+
This is a change of behavior compared to abrupt node termination.
393+
{{< /note >}}
394+
380395
## {{% heading "whatsnext" %}}
381396

382397
* Learn about the [components](/docs/concepts/overview/components/#node-components) that make up a node.

0 commit comments

Comments
 (0)