Skip to content

[CORE-11642] Add note about enabled ANNOTATE_POD_IP setting to EKS guide. #2174

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
22 changes: 19 additions & 3 deletions calico/getting-started/kubernetes/managed-public-cloud/eks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,32 @@ When using the Amazon VPC CNI plugin, $[prodname] does not support enforcement o

:::

***Prerequisites***

* You [disabled network policy for the AWS VPC CNI](https://docs.aws.amazon.com/eks/latest/userguide/network-policy-disable.html).

1. First, create an Amazon EKS cluster.

```bash
eksctl create cluster --name <my-calico-cluster>
```

Do **not** enable [network policy for the AWS VPC CNI](https://docs.aws.amazon.com/eks/latest/userguide/network-policy-disable.html); it conflicts with $[prodname].

1. Configure AWS VPC CNI to [annotate Pods with their IPs](https://github.com/aws/amazon-vpc-cni-k8s?tab=readme-ov-file#annotate_pod_ip-v193).
Note the requirement to grant the "patch" permission to the `aws-node` daemon set to avoid permission errors.
This setting ensures that pod IPs propagate quickly from AWS VPC CNI to $[prodname].

```bash
cat << EOF > append.yaml
- apiGroups:
- ""
resources:
- pods
verbs:
- patch
EOF
kubectl apply -f <(cat <(kubectl get clusterrole aws-node -o yaml) append.yaml)
kubectl set env -n kube-system daemonset/aws-node ANNOTATE_POD_IP=true
```

1. Install the Tigera Operator and custom resource definitions.

```bash
Expand Down