Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding EBS CSI Driver and GP3 support, fixes #833, fixes #510 #885

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions nodejs/eks/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,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",
jaxxstorm marked this conversation as resolved.
Show resolved Hide resolved
arn: "arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy",
},
],
},
{ parent, provider },
Expand Down Expand Up @@ -1762,6 +1766,19 @@ export function createCluster(
}
}

if (defaultNodeGroup) {
// Add CSI Driver for Storage
const ebsCsiDriver = new aws.eks.Addon(
`${name}-aws-ebs-csi-driver`,
{
addonName: "aws-ebs-csi-driver",
clusterName: core.cluster.name,
},
{
parent: self,
},
);
}
// Export the cluster's kubeconfig with a dependency upon the cluster's autoscaling group. This will help
// ensure that the cluster's consumers do not attempt to use the cluster until its workers are attached.
const kubeconfig = pulumi.all(configDeps).apply(([kc]) => kc);
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
Loading