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

fix: add fast storage class to gcp module #154

Closed
Closed
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
15 changes: 15 additions & 0 deletions modules/gcp/storage-classes/stage1/main.tf
Original file line number Diff line number Diff line change
@@ -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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not very fast. I am going to guess they should be pd-ssd or if these should be pd-balanced then the gp class below should be pd-standard

}
}

resource "kubernetes_storage_class" "gp" {
metadata {
name = "gp"
Expand Down