File tree 1 file changed +21
-4
lines changed
website/content/en/preview
1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,34 @@ Reasons that a node can fail to join the cluster include:
33
33
- Security Groups
34
34
- Networking
35
35
36
- The easiest way to start debugging is to connect to the instance
37
- ``` sh
36
+ The easiest way to start debugging is to connect to the instance and get the Kubelet logs. For an AL2 based node:
37
+ ``` bash
38
38
# List the nodes managed by Karpenter
39
39
kubectl get node -l karpenter.sh/provisioner-name
40
- # Extract the instance ID
41
- INSTANCE_ID=$( kubectl get node -l karpenter.sh/provisioner- name -ojson | jq -r " .items[0] .spec.providerID" | cut -d \/ -f5)
40
+ # Extract the instance ID (replace <node-name> with a node name from the above listing)
41
+ INSTANCE_ID=$( kubectl get node < node- name> -ojson | jq -r " .spec.providerID" | cut -d \/ -f5)
42
42
# Connect to the instance
43
43
aws ssm start-session --target $INSTANCE_ID
44
44
# Check Kubelet logs
45
45
sudo journalctl -u kubelet
46
46
```
47
+
48
+ For Bottlerocket, you'll need to get access to the root filesystem:
49
+ ``` bash
50
+ # List the nodes managed by Karpenter
51
+ kubectl get node -l karpenter.sh/provisioner-name
52
+ # Extract the instance ID (replace <node-name> with a node name from the above listing)
53
+ INSTANCE_ID=$( kubectl get node < node-name> -ojson | jq -r " .spec.providerID" | cut -d \/ -f5)
54
+ # Connect to the instance
55
+ aws ssm start-session --target $INSTANCE_ID
56
+ # Enter the admin container
57
+ enter-admin-container
58
+ # Run sheltie
59
+ sudo sheltie
60
+ # Check Kubelet logs
61
+ journalctl -u kubelet
62
+ ```
63
+
47
64
Here are examples of errors from Node NotReady issues that you might see from ` journalctl ` :
48
65
49
66
* The runtime network not being ready can reflect a problem with IAM role permissions:
You can’t perform that action at this time.
0 commit comments