Skip to content

Commit 9ae943f

Browse files
committed
Move EKS cluster requirements under "create an Amazon EKS cluster"
1 parent 8d9ccae commit 9ae943f

File tree

1 file changed

+19
-4
lines changed
  • calico/getting-started/kubernetes/managed-public-cloud

1 file changed

+19
-4
lines changed

calico/getting-started/kubernetes/managed-public-cloud/eks.mdx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,32 @@ When using the Amazon VPC CNI plugin, $[prodname] does not support enforcement o
3535

3636
:::
3737

38-
***Prerequisites***
39-
40-
* You [disabled network policy for the AWS VPC CNI](https://docs.aws.amazon.com/eks/latest/userguide/network-policy-disable.html).
41-
* You [configured 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. Without this setting, pod IPs can propagate slowly when Kubernetes is under load resulting in slow policy application after pod creation.
4238

4339
1. First, create an Amazon EKS cluster.
4440

4541
```bash
4642
eksctl create cluster --name <my-calico-cluster>
4743
```
4844

45+
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].
46+
47+
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).
48+
Note the requirement to grant the "patch" permission to the `aws-node` daemon set to avoid permission errors.
49+
This setting ensures that pod IPs propagate quickly from AWS VPC CNI to $[prodname].
50+
51+
```bash
52+
cat << EOF > append.yaml
53+
- apiGroups:
54+
- ""
55+
resources:
56+
- pods
57+
verbs:
58+
- patch
59+
EOF
60+
kubectl apply -f <(cat <(kubectl get clusterrole aws-node -o yaml) append.yaml)
61+
kubectl set env -n kube-system daemonset/aws-node ANNOTATE_POD_IP=true
62+
```
63+
4964
1. Install the Tigera Operator and custom resource definitions.
5065
5166
```bash

0 commit comments

Comments
 (0)