From 920e1930b5b8e3bc854fd40d42cdd13671fdfef4 Mon Sep 17 00:00:00 2001 From: Overcooked Panda Date: Fri, 8 Nov 2024 14:42:49 -0600 Subject: [PATCH] fix: add fast storage class to gcp module --- modules/gcp/storage-classes/stage1/main.tf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/gcp/storage-classes/stage1/main.tf b/modules/gcp/storage-classes/stage1/main.tf index f861ea6..d28b5ab 100644 --- a/modules/gcp/storage-classes/stage1/main.tf +++ b/modules/gcp/storage-classes/stage1/main.tf @@ -1,3 +1,18 @@ +resource "kubernetes_storage_class" "fast" { + metadata { + name = "fast" + } + + allow_volume_expansion = true + storage_provisioner = "pd.csi.storage.gke.io" + reclaim_policy = "Delete" + volume_binding_mode = "Immediate" + + parameters = { + "type" = "pd-balanced" + } +} + resource "kubernetes_storage_class" "gp" { metadata { name = "gp"