Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update debugging doc #349

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,22 +161,37 @@ containers:
- name: ENABLE_POD_ENI
value: "true"
```
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.

**Resolution**
If the environment variable is not set,

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

### Verify Trunk ENI is created
Get the EKS managed CRD CNINode
```
kubectl get cninode <NODDE_NAME>
```
The CNINode's FEATURE column should have
```
[{"name":"SecurityGroupsForPods"}]
```

Describe the Node,
Alternatively, you can check node for further confirming.
Describe the Node
```
kubectl describe node node-name
kubectl describe node <NODE_NAME>
```

The following annotation will be added in node's `Capacity` and `Allocatable` if Trunk ENI is created successfully
```
vpc.amazonaws.com/pod-eni: 9 (could be other values depending on your instance type)
```

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

**Resolution**
Expand Down