You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/reference/node/node-status.md
+24-23Lines changed: 24 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,8 @@ A Node's status contains the following information:
20
20
21
21
You can use `kubectl` to view a Node's status and other details:
22
22
23
-
```shell
24
23
kubectl describe node <insert-node-name-here>
25
-
```
24
+
26
25
27
26
Each section of the output is described below.
28
27
@@ -40,43 +39,42 @@ The usage of these fields varies depending on your cloud provider or bare metal
40
39
41
40
The `conditions` field describes the status of all `Running` nodes. Examples of conditions include:
42
41
43
-
{{< table caption = "Node conditions, and a description of when each condition applies." >}}
42
+
{{< table caption="Node conditions, and a description of when each condition applies." >}}
44
43
| Node Condition | Description |
45
44
|----------------------|-------------|
46
-
|`Ready`|`True` if the node is healthy and ready to accept pods, `False` if the node is not healthy and is not accepting pods, and `Unknown` if the node controller has not heard from the node in the last `node-monitor-grace-period` (default is 50 seconds) |
47
-
|`DiskPressure`|`True` if pressure exists on the disk size—that is, if the disk capacity is low; otherwise `False`|
48
-
|`MemoryPressure`|`True` if pressure exists on the node memory—that is, if the node memory is low; otherwise `False`|
49
-
|`PIDPressure`|`True` if pressure exists on the processes—that is, if there are too many processes on the node; otherwise `False`|
50
-
|`NetworkUnavailable`|`True` if the network for the node is not correctly configured, otherwise `False`|
45
+
|`Ready`|`True` if the node is healthy and ready to accept pods, `False` if the node is not healthy and is not accepting pods, and `Unknown` if the node controller has not heard from the node in the last `node-monitor-grace-period` (default is 40 seconds).|
46
+
|`DiskPressure`|`True` if pressure exists on the disk size—that is, if the disk capacity is low; otherwise `False`.|
47
+
|`MemoryPressure`|`True` if pressure exists on the node memory—that is, if the node memory is low; otherwise `False`.|
48
+
|`PIDPressure`|`True` if pressure exists on the processes—that is, if there are too many processes on the node; otherwise `False`.|
49
+
|`NetworkUnavailable`|`True` if the network for the node is not correctly configured, otherwise `False`.|
51
50
{{< /table >}}
52
51
53
52
{{< note >}}
54
53
If you use command-line tools to print details of a cordoned Node, the Condition includes
55
54
`SchedulingDisabled`. `SchedulingDisabled` is not a Condition in the Kubernetes API; instead,
56
-
cordoned nodes are marked Unschedulable in their spec.
55
+
cordoned nodes are marked `Unschedulable` in their spec.
57
56
{{< /note >}}
58
57
59
58
In the Kubernetes API, a node's condition is represented as part of the `.status`
60
59
of the Node resource. For example, the following JSON structure describes a healthy node:
61
60
62
-
```json
63
61
"conditions": [
64
-
{
65
-
"type": "Ready",
66
-
"status": "True",
67
-
"reason": "KubeletReady",
68
-
"message": "kubelet is posting ready status",
69
-
"lastHeartbeatTime": "2019-06-05T18:38:35Z",
70
-
"lastTransitionTime": "2019-06-05T11:41:27Z"
71
-
}
62
+
{
63
+
"type": "Ready",
64
+
"status": "True",
65
+
"reason": "KubeletReady",
66
+
"message": "kubelet is posting ready status",
67
+
"lastHeartbeatTime": "2019-06-05T18:38:35Z",
68
+
"lastTransitionTime": "2019-06-05T11:41:27Z"
69
+
}
72
70
]
73
-
```
71
+
74
72
75
73
When problems occur on nodes, the Kubernetes control plane automatically creates
76
74
[taints](/docs/concepts/scheduling-eviction/taint-and-toleration/) that match the conditions
77
75
affecting the node. An example of this is when the `status` of the Ready condition
78
76
remains `Unknown` or `False` for longer than the kube-controller-manager's `NodeMonitorGracePeriod`,
79
-
which defaults to 50 seconds. This will cause either an `node.kubernetes.io/unreachable` taint, for an `Unknown` status,
77
+
which defaults to 40 seconds. This will cause either an `node.kubernetes.io/unreachable` taint, for an `Unknown` status,
80
78
or a `node.kubernetes.io/not-ready` taint, for a `False` status, to be added to the Node.
81
79
82
80
These taints affect pending pods as the scheduler takes the Node's taints into consideration when
@@ -116,7 +114,7 @@ availability of each node, and to take action when failures are detected.
0 commit comments