@@ -19,44 +19,27 @@ metadata:
1919 region : {{ .Env.REGION }}
2020 version : " {{ .Env.K8S_VERSION }}"
2121availabilityZones : [{{ .Env.ZONES }}]
22+ autoModeConfig :
23+ enabled : false
2224iam :
2325 vpcResourceControllerPolicy : true
26+ {{- if env.Getenv "USE_IRSA" }}
2427 withOIDC : true
2528 serviceAccounts :
2629 - metadata :
2730 name : ebs-csi-controller-sa
2831 namespace : kube-system
2932 wellKnownPolicies :
3033 ebsCSIController : true
31- attachPolicy :
32- Version : ' 2012-10-17'
33- Statement :
34- - Effect : Allow
35- Action :
36- - ec2:CopyVolumes
37- Resource : " arn:aws:ec2:*:*:volume/vol-*"
38- - Effect : Allow
39- Action :
40- - ec2:CopyVolumes
41- Resource : " arn:aws:ec2:*:*:volume/*"
42- Condition :
43- StringLike :
44- " aws:RequestTag/ebs.csi.aws.com/cluster " : " true"
45- - Effect : Allow
46- Action :
47- - ec2:CopyVolumes
48- Resource : " arn:aws:ec2:*:*:volume/*"
49- Condition :
50- StringLike :
51- " aws:RequestTag/CSIVolumeName " : " *"
52- - Effect : Allow
53- Action :
54- - ec2:CreateTags
55- Resource :
56- - " arn:aws:ec2:*:*:volume/*"
57- Condition :
58- StringEquals :
59- " ec2:CreateAction " : " CopyVolumes"
34+ {{- else }}
35+ podIdentityAssociations :
36+ - namespace : kube-system
37+ serviceAccountName : ebs-csi-controller-sa
38+ wellKnownPolicies :
39+ ebsCSIController : true
40+ addons :
41+ - name : eks-pod-identity-agent
42+ {{- end }}
6043managedNodeGroups :
6144 - name : ng-linux
6245 amiFamily : {{ .Env.AMI_FAMILY }}
@@ -78,6 +61,7 @@ managedNodeGroups:
7861 instanceTypes : [m5.2xlarge]
7962 ssh :
8063 allow : false
64+ enableSsm : true
8165{{- end }}
8266nodeGroups :
8367{{- if env.Getenv "OUTPOST_ARN" }}
@@ -93,6 +77,7 @@ nodeGroups:
9377 instanceType : {{ .Env.OUTPOST_INSTANCE_TYPE }}
9478 ssh :
9579 allow : false
80+ enableSsm : true
9681 outpostARN : {{ .Env.OUTPOST_ARN }}
9782{{- end }}
9883{{- if and (eq .Env.WINDOWS "true") (env.Getenv "WINDOWS_AMI") }}
@@ -105,4 +90,5 @@ nodeGroups:
10590 instanceType : m5.2xlarge
10691 ssh :
10792 allow : false
93+ enableSsm : true
10894{{- end }}
0 commit comments