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/kubectl/kubectl.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -362,7 +362,7 @@ kubectl [flags]
362
362
<tdcolspan="2">KUBECTL_ENABLE_CMD_SHADOW</td>
363
363
</tr>
364
364
<tr>
365
-
<td></td><tdstyle="line-height: 130%; word-wrap: break-word;">When set to true, external plugins can be used as subcommands for builtin commands if subcommand does not exist. In alpha stage, this feature can only be used for create command(e.g. kubectl create networkpolicy).
365
+
<td></td><tdstyle="line-height: 130%; word-wrap: break-word;">When set to true, external plugins can be used as subcommands for builtin commands if subcommand does not exist. In alpha stage, this feature can only be used for create command(e.g. kubectl create networkpolicy).
366
366
</td>
367
367
</tr>
368
368
@@ -386,7 +386,15 @@ kubectl [flags]
386
386
<tdcolspan="2">KUBECTL_KUBERC</td>
387
387
</tr>
388
388
<tr>
389
-
<td></td><tdstyle="line-height: 130%; word-wrap: break-word;">When set to true, kuberc file is taken into account to define user specific preferences.
389
+
<td></td><tdstyle="line-height: 130%; word-wrap: break-word;">When set to true, kuberc file is taken into account to define user specific preferences.
390
+
</td>
391
+
</tr>
392
+
393
+
<tr>
394
+
<tdcolspan="2">KUBECTL_KYAML</td>
395
+
</tr>
396
+
<tr>
397
+
<td></td><tdstyle="line-height: 130%; word-wrap: break-word;">When set to true, kubectl is capable of producing Kubernetes-specific dialect of YAML output format.
Copy file name to clipboardExpand all lines: content/en/docs/reference/node/node-status.md
+27-23Lines changed: 27 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ content_type: reference
3
3
title: Node Status
4
4
weight: 80
5
5
---
6
+
6
7
<!-- overview -->
7
8
8
9
The status of a [node](/docs/concepts/architecture/nodes/) in Kubernetes is a critical
@@ -20,9 +21,9 @@ A Node's status contains the following information:
20
21
21
22
You can use `kubectl` to view a Node's status and other details:
22
23
23
-
```shell
24
24
kubectl describe node <insert-node-name-here>
25
-
```
25
+
26
+
text
26
27
27
28
Each section of the output is described below.
28
29
@@ -40,43 +41,43 @@ The usage of these fields varies depending on your cloud provider or bare metal
40
41
41
42
The `conditions` field describes the status of all `Running` nodes. Examples of conditions include:
42
43
43
-
{{< table caption = "Node conditions, and a description of when each condition applies." >}}
44
+
{{< table caption="Node conditions, and a description of when each condition applies." >}}
44
45
| Node Condition | Description |
45
46
|----------------------|-------------|
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`|
47
+
|`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).|
48
+
|`DiskPressure`|`True` if pressure exists on the disk size—that is, if the disk capacity is low; otherwise `False`.|
49
+
|`MemoryPressure`|`True` if pressure exists on the node memory—that is, if the node memory is low; otherwise `False`.|
50
+
|`PIDPressure`|`True` if pressure exists on the processes—that is, if there are too many processes on the node; otherwise `False`.|
51
+
|`NetworkUnavailable`|`True` if the network for the node is not correctly configured, otherwise `False`.|
51
52
{{< /table >}}
52
53
53
54
{{< note >}}
54
55
If you use command-line tools to print details of a cordoned Node, the Condition includes
55
56
`SchedulingDisabled`. `SchedulingDisabled` is not a Condition in the Kubernetes API; instead,
56
-
cordoned nodes are marked Unschedulable in their spec.
57
+
cordoned nodes are marked `Unschedulable` in their spec.
57
58
{{< /note >}}
58
59
59
60
In the Kubernetes API, a node's condition is represented as part of the `.status`
60
61
of the Node resource. For example, the following JSON structure describes a healthy node:
61
62
62
-
```json
63
63
"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
-
}
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
+
}
72
72
]
73
-
```
73
+
74
+
text
74
75
75
76
When problems occur on nodes, the Kubernetes control plane automatically creates
76
77
[taints](/docs/concepts/scheduling-eviction/taint-and-toleration/) that match the conditions
77
78
affecting the node. An example of this is when the `status` of the Ready condition
78
79
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,
80
+
which defaults to 40 seconds. This will cause either an `node.kubernetes.io/unreachable` taint, for an `Unknown` status,
80
81
or a `node.kubernetes.io/not-ready` taint, for a `False` status, to be added to the Node.
81
82
82
83
These taints affect pending pods as the scheduler takes the Node's taints into consideration when
@@ -116,7 +117,7 @@ availability of each node, and to take action when failures are detected.
0 commit comments