Skip to content

Commit 1a61f3c

Browse files
author
Jess Egler
committed
Breaks up kubectl commands for clarity
1 parent c08e3a3 commit 1a61f3c

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

articles/operator-nexus/troubleshoot-not-ready-kubernetes-cluster-node.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ author: jessegler
1010
---
1111
# Troubleshoot a KubernetesCluster with a node in NotReady state
1212

13-
Follow this troubleshooting guide if you see a kubernetesCluster with a node in NotReady.
13+
Follow this troubleshooting guide if you see a kubernetesCluster with a node in **NotReady**.
1414

1515
## Prerequisites
1616

@@ -24,39 +24,44 @@ Follow this troubleshooting guide if you see a kubernetesCluster with a node in
2424

2525
## Procedure
2626

27-
Delete the node by following the example below. This will allow the Cluster to attempt to reschedule and restart the node.
27+
Delete the node by following the instructions below. This will allow the Cluster to attempt to reschedule and restart the node.
2828

29-
~~~bash
30-
# get list of nodes, wide
3129

30+
1. Use kubectl to list the nodes using the wide flag. Observe the node in **NotReady** status.
31+
32+
~~~bash
3233
$ kubectl get nodes -owide
3334
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
3435
mytest-naks1-3b466a17-agentpool1-md-6bg5h-7qt2b Ready <none> 6d3h v1.27.3 10.4.74.30 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
3536
mytest-naks1-3b466a17-agentpool1-md-6bg5h-dqmzw Ready <none> 6d3h v1.27.3 10.4.74.31 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
3637
mytest-naks1-3b466a17-agentpool1-md-6bg5h-lkhhq NotReady <none> 6d3h v1.27.3 10.4.74.29 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
3738
mytest-naks1-3b466a17-control-plane-6q7ns Ready control-plane 6d3h v1.27.3 10.4.74.14 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
3839
mytest-naks1-3b466a17-control-plane-8qqvz Ready control-plane 6d3h v1.27.3 10.4.74.28 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
39-
mytest-naks1-3b466a17-control-plane-g42mh Ready control-plane 6d3h v1.27.3 10.4.74.32 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
40+
mytest-naks1-3b466a17-control-plane-g42mh Ready control-plane 6d3h v1.27.3 10.4.74.32 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
41+
~~~
4042

41-
# see NotReady node. issue kubectl command to delete it:
43+
1. Issue the kubectl command to delete the node.
4244

45+
~~~bash
4346
$ kubectl delete node mytest-naks1-3b466a17-agentpool1-md-6bg5h-lkhhq
4447
node "mytest-naks1-3b466a17-agentpool1-md-6bg5h-lkhhq" deleted
48+
~~~
4549

50+
1. List the nodes again and see that the node is gone.
4651

47-
# node list is now shows that node is gone:
48-
52+
~~~bash
4953
$ kubectl get nodes -owide
5054
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
5155
mytest-naks1-3b466a17-agentpool1-md-6bg5h-7qt2b Ready <none> 6d3h v1.27.3 10.4.74.30 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
5256
mytest-naks1-3b466a17-agentpool1-md-6bg5h-dqmzw Ready <none> 6d3h v1.27.3 10.4.74.31 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
5357
mytest-naks1-3b466a17-control-plane-6q7ns Ready control-plane 6d3h v1.27.3 10.4.74.14 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
5458
mytest-naks1-3b466a17-control-plane-8qqvz Ready control-plane 6d3h v1.27.3 10.4.74.28 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
5559
mytest-naks1-3b466a17-control-plane-g42mh Ready control-plane 6d3h v1.27.3 10.4.74.32 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
60+
~~~
5661

62+
1. Wait 5-15 minutes for the node to be replaced. See that its returned with a new name. It will show **NotReady** as it comes up.
5763

58-
# wait 5-15 minutes while its replaced. see it returned with a new name:
59-
64+
~~~bash
6065
$ kubectl get nodes -owide
6166
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
6267
mytest-naks1-3b466a17-agentpool1-md-6bg5h-7qt2b Ready <none> 6d3h v1.27.3 10.4.74.30 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
@@ -65,10 +70,11 @@ mytest-naks1-3b466a17-agentpool1-md-6bg5h-nxkks NotReady <none> 42s
6570
mytest-naks1-3b466a17-control-plane-6q7ns Ready control-plane 6d3h v1.27.3 10.4.74.14 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
6671
mytest-naks1-3b466a17-control-plane-8qqvz Ready control-plane 6d3h v1.27.3 10.4.74.28 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
6772
mytest-naks1-3b466a17-control-plane-g42mh Ready control-plane 6d3h v1.27.3 10.4.74.32 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26
73+
~~~
6874

75+
1. Wait a bit longer and the **NotReady** node becomes **Ready**.
6976

70-
# wait a bit longer, while the new NotReady node becomes Ready:
71-
77+
~~~bash
7278
$ kubectl get nodes -owide
7379
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
7480
mytest-naks1-3b466a17-agentpool1-md-6bg5h-7qt2b Ready <none> 6d3h v1.27.3 10.4.74.30 <none> CBL-Mariner/Linux 5.15.153.1-2.cm2 containerd://1.6.26

0 commit comments

Comments
 (0)