File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,37 @@ If you are using the IMDSv2 you must set the hop limit to 2 or higher in order t
34
34
The controller runs on the worker nodes, so it needs access to the AWS ALB/NLB resources via IAM permissions.
35
35
The IAM permissions can either be setup via IAM roles for ServiceAccount or can be attached directly to the worker node IAM roles.
36
36
37
+ !!!warning "Permissions with the least privileges"
38
+ The reference IAM policies contain the following permissive configuration:
39
+ ```
40
+ {
41
+ "Effect": "Allow",
42
+ "Action": [
43
+ "ec2: AuthorizeSecurityGroupIngress ",
44
+ "ec2: RevokeSecurityGroupIngress "
45
+ ] ,
46
+ "Resource": "* "
47
+ },
48
+ ```
49
+ We recommend to further scope down this configuration based on the VPC ID. Replace REGION, ACCOUNT and VPC-ID with appropriate values
50
+ and add it to the above IAM permissions.
51
+ ```
52
+ "Condition": {
53
+ "ArnEquals": {
54
+ "ec2: Vpc ": "arn:aws:ec2:REGION:ACCOUNT: vpc /VPC-ID"
55
+ }
56
+ }
57
+ ```
58
+ OR restrict access to security groups tagged for the particular k8s cluster. Replace CLUSTER-ID with your k8s cluster id and add it to
59
+ the above IAM permissions.
60
+ ```
61
+ "Condition": {
62
+ "Null": {
63
+ "aws: ResourceTag /kubernetes.io/cluster/CLUSTER-ID": "false"
64
+ }
65
+ }
66
+ ```
67
+
37
68
1 . Create IAM OIDC provider
38
69
```
39
70
eksctl utils associate-iam-oidc-provider \
You can’t perform that action at this time.
0 commit comments