Skip to content

Commit

Permalink
storage class to generic and storage extracted to a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cyucelen committed Sep 6, 2019
1 parent 55f535b commit 7409533
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ resource "kubernetes_stateful_set" "cassandra" {
}
spec {
access_modes = ["ReadWriteOnce"]
storage_class_name = "generic"
resources {
requests = { storage = "10Gi" }
requests = { storage = ${var.storage_size} }
}
}
}
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
variable "namespace" {}
variable "cassandra_name" {}
variable "cluster_size" {}
variable "storage_size" {}

0 comments on commit 7409533

Please sign in to comment.