Skip to content

Commit a0cd646

Browse files
committed
Fix missing permission setup for IPv6 cluster
1 parent d51e465 commit a0cd646

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

examples/30-vpc-with-ip-family.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,23 @@ kubernetesNetworkConfig:
1414
addons:
1515
- name: vpc-cni
1616
version: latest
17+
# "ec2:AssignIpv6Addresses" would be required for IPv6 cluster
18+
# - https://github.com/aws/amazon-vpc-cni-k8s/blob/master/docs/iam-policy.md#ipv6-mode
19+
attachPolicy:
20+
Version: "2012-10-17"
21+
Statement:
22+
- Effect: Allow
23+
Action:
24+
- "ec2:AssignIpv6Addresses"
25+
- "ec2:DescribeInstances"
26+
- "ec2:DescribeTags"
27+
- "ec2:DescribeNetworkInterfaces"
28+
- "ec2:DescribeInstanceTypes"
29+
Resource: '*'
30+
- Effect: Allow
31+
Action:
32+
- "ec2:CreateTags"
33+
Resource: 'arn:aws:ec2:*:*:network-interface/*'
1734
- name: coredns
1835
version: latest
1936
- name: kube-proxy

userdocs/src/usage/vpc-ip-family.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ This is an in config file setting only. When IPv6 is set, the following restrict
4040
- managed nodegroup creation is not supported with un-owned IPv6 clusters
4141
- `vpc.NAT` and `serviceIPv4CIDR` fields are created by eksctl for ipv6 clusters and thus, are not supported configuration options
4242
- AutoAllocateIPv6 is not supported together with IPv6
43+
- For IPv6 cluster, the IAM role for vpc-cni must have [required IAM policies for IPv6 mode](https://github.com/aws/amazon-vpc-cni-k8s/blob/master/docs/iam-policy.md#ipv6-mode) associated
4344

4445
The default value is `IPv4`.
4546

0 commit comments

Comments
 (0)