Skip to content

Commit f42189d

Browse files
add gp3 sc (#32)
1 parent d5d4909 commit f42189d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

main.tf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,28 @@ module "comet_eks" {
9393
eks_airflow_node_count = var.eks_airflow_node_count
9494
}
9595

96+
resource "kubernetes_storage_class" "gp3" {
97+
metadata {
98+
name = "gp3"
99+
annotations = {
100+
"storageclass.kubernetes.io/is-default-class" = "true"
101+
}
102+
}
103+
104+
storage_provisioner = "ebs.csi.aws.com"
105+
106+
parameters = {
107+
type = "gp3"
108+
# Optionally, set iops and throughput:
109+
# iops = "3000"
110+
# throughput = "125"
111+
}
112+
113+
reclaim_policy = "Delete"
114+
volume_binding_mode = "WaitForFirstConsumer"
115+
allow_volume_expansion = true
116+
}
117+
96118
module "comet_elasticache" {
97119
source = "./modules/comet_elasticache"
98120
count = var.enable_elasticache ? 1 : 0

0 commit comments

Comments
 (0)