Skip to content

Commit

Permalink
Adding EBS CSI Driver and GP3 support, fixes #833, fixes #510
Browse files Browse the repository at this point in the history
  • Loading branch information
rshade committed Nov 21, 2023
1 parent aadf3f4 commit 74a9f74
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions nodejs/eks/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,21 @@ export function createCore(
{ parent: parent },
);

// Add CSI Driver for Storage

const ebsCsiDriver = new k8s.helm.v3.Chart(
"aws-ebs-csi-driver",
{
namespace: "kube-system",
chart: "aws-ebs-csi-driver",
fetchOpts: {
repo: "https://kubernetes-sigs.github.io/aws-ebs-csi-driver",
},
},
{
provider: k8sProvider,
}
)
// Add any requested StorageClasses.
const storageClasses = args.storageClasses || {};
const userStorageClasses = {} as UserStorageClasses;
Expand Down Expand Up @@ -780,6 +795,10 @@ export function createCore(
id: "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly",
arn: pulumi.interpolate`arn:${partition}:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly`,
},
{
id: "arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy",
arn: pulumi.interpolate`arn:${partition}:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy`,
},
],
},
{ parent, provider },
Expand Down
2 changes: 1 addition & 1 deletion nodejs/eks/storageclass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import * as pulumi from "@pulumi/pulumi";
/**
* EBSVolumeType lists the set of volume types accepted by an EKS storage class.
*/
export type EBSVolumeType = "io1" | "gp2" | "sc1" | "st1";
export type EBSVolumeType = "io1" | "gp2" | "gp3" | "sc1" | "st1";

/**
* StorageClass describes the inputs to a single Kubernetes StorageClass provisioned by AWS. Any number of storage
Expand Down

0 comments on commit 74a9f74

Please sign in to comment.