Skip to content

Commit 53c2d55

Browse files
authored
update debugging doc (#349)
1 parent 7df7de0 commit 53c2d55

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

docs/troubleshooting.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,22 +161,37 @@ containers:
161161
- name: ENABLE_POD_ENI
162162
value: "true"
163163
```
164+
If you are using ConfigMaps that are referred from VPC CNI containers' `env`, you need have the same key/value pair setup in the referred ConfigMap.
164165

165166
**Resolution**
166167
If the environment variable is not set,
167168

168169
- Follow the guide to [enable SGP feature](https://docs.aws.amazon.com/eks/latest/userguide/security-groups-for-pods.html).
169170

170171
### Verify Trunk ENI is created
172+
Get the EKS managed CRD CNINode
173+
```
174+
kubectl get cninode <NODDE_NAME>
175+
```
176+
The CNINode's FEATURE column should have
177+
```
178+
[{"name":"SecurityGroupsForPods"}]
179+
```
171180

172-
Describe the Node,
181+
Alternatively, you can check node for further confirming.
182+
Describe the Node
173183
```
174-
kubectl describe node node-name
184+
kubectl describe node <NODE_NAME>
185+
```
186+
187+
The following annotation will be added in node's `Capacity` and `Allocatable` if Trunk ENI is created successfully
188+
```
189+
vpc.amazonaws.com/pod-eni: 9 (could be other values depending on your instance type)
175190
```
176191

177-
The following label will be set if Trunk ENI is created,
192+
Your node should also receive an event like the following:
178193
```
179-
Labels: vpc.amazonaws.com/has-trunk-attached=true
194+
Normal NodeTrunkInitiated 5m12s vpc-resource-controller The node has trunk interface initialized successfully
180195
```
181196

182197
**Resolution**

0 commit comments

Comments
 (0)