Skip to content

Commit

Permalink
Merge pull request #42 from sparkfabrik/feature/1753_create_a_retain_sc
Browse files Browse the repository at this point in the history
refs platform/1753: Create a retain SC by default
  • Loading branch information
Syphon83 authored Nov 9, 2022
2 parents 52cbd46 + 1c5861c commit 7a77978
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 4 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,13 @@ module "gke" {

remove_default_node_pool = true

# Kube-proxy - eBPF setting
# Kube-proxy - eBPF setting
datapath_provider = var.gke_datapath
# Google Group for RBAC
authenticator_security_group = var.gke_google_group_rbac_mail
# Backup for GKE
# Backup for GKE
gke_backup_agent_config = var.gke_enable_backup_agent
# Istio
# Istio
istio = var.gke_enable_istio_addon
istio_auth = var.gke_istio_auth

Expand Down Expand Up @@ -416,6 +416,7 @@ resource "kubernetes_storage_class" "storage_class" {
metadata {
name = var.gke_storage_class
}
reclaim_policy = var.gke_storage_class_reclaim_policy
storage_provisioner = "kubernetes.io/gce-pd"
parameters = {
type = var.gke_storage_class
Expand Down
8 changes: 7 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,16 @@ variable "gke_machine_type" {

variable "gke_storage_class" {
type = string
description = "Default storage class for GKE Cluster. Default pd-sdd."
description = "Default storage class for GKE Cluster. Default pd-sdd"
default = "pd-ssd"
}

variable "gke_storage_class_reclaim_policy" {
type = string
description = "Set storage class reclaim policy. Default Retain"
default = "Retain"
}

variable "gke_disk_replication" {
type = string
description = "Setup replication type for disk persistent volune. Possible values none or regional-pd. Default to none."
Expand Down

0 comments on commit 7a77978

Please sign in to comment.