-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstorage.tf
44 lines (41 loc) · 1.04 KB
/
storage.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
resource "kubernetes_storage_class" "ssd-storageclass" {
metadata {
name = "ssd"
}
storage_provisioner = "kubernetes.io/gce-pd"
parameters = {
type = "pd-ssd"
}
}
resource "kubernetes_storage_class" "ssd-retain-storageclass" {
metadata {
name = "ssd-retain"
}
storage_provisioner = "kubernetes.io/gce-pd"
parameters = {
type = "pd-ssd"
}
reclaim_policy = "Retain"
}
# resource "kubernetes_storage_class" "regional-standard-storageclass" {
# metadata {
# name = "regional-standard"
# }
# storage_provisioner = "kubernetes.io/gce-pd"
# parameters = {
# type = "pd-standard"
# replication-type = "regional-pd"
# zones = "${var.gcp_location}-b, ${var.gcp_location}-f"
# }
# }
# resource "kubernetes_storage_class" "regional-ssd-storageclass" {
# metadata {
# name = "regional-ssd"
# }
# storage_provisioner = "kubernetes.io/gce-pd"
# parameters = {
# type = "pd-ssd"
# replication-type = "regional-pd"
# zones = "${var.gcp_location}-b, ${var.gcp_location}-f"
# }
# }