Skip to content

Commit

Permalink
EBSCSI Driver policy (#2262)
Browse files Browse the repository at this point in the history
* adding EBSCSI Driver policy to the EKS Workers policy as the CSI Driver is required for clusters above 1.23

* also, adding to the eks-nodepool module

* updating kubeproxy and cni for version 1.24
  • Loading branch information
EliseCastle23 authored Jul 13, 2023
1 parent a94ad96 commit 2bed77c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen3/bin/kube-setup-system-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
source "${GEN3_HOME}/gen3/lib/utils.sh"
gen3_load "gen3/gen3setup"

kubeproxy=${kubeproxy:-1.22.11}
kubeproxy=${kubeproxy:-1.24.7}
coredns=${coredns:-1.8.7}
kubednsautoscaler=${kubednsautoscaler:-1.8.6}
cni=${cni:-1.12.0}
cni=${cni:-1.12.2}
calico=${calico:-1.7.8}


Expand Down
5 changes: 5 additions & 0 deletions tf_files/aws/modules/eks-nodepool/cloud.tf
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ resource "aws_iam_role_policy_attachment" "eks-node-AmazonEKS_CNI_Policy" {
role = "${aws_iam_role.eks_node_role.name}"
}

resource "aws_iam_role_policy_attachment" "eks-node-AmazonEKSCSIDriverPolicy" {
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy"
role = "${aws_iam_role.eks_node_role.name}"
}

resource "aws_iam_role_policy_attachment" "eks-node-AmazonEC2ContainerRegistryReadOnly" {
policy_arn = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"
role = "${aws_iam_role.eks_node_role.name}"
Expand Down
5 changes: 5 additions & 0 deletions tf_files/aws/modules/eks/cloud.tf
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,11 @@ resource "aws_iam_role_policy_attachment" "eks-node-AmazonEKS_CNI_Policy" {
role = "${aws_iam_role.eks_node_role.name}"
}

resource "aws_iam_role_policy_attachment" "eks-node-AmazonEKSCSIDriverPolicy" {
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy"
role = "${aws_iam_role.eks_node_role.name}"
}

resource "aws_iam_role_policy_attachment" "eks-node-AmazonEC2ContainerRegistryReadOnly" {
policy_arn = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"
role = "${aws_iam_role.eks_node_role.name}"
Expand Down

0 comments on commit 2bed77c

Please sign in to comment.