Skip to content

Commit

Permalink
change workspace default disk size to 360
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvaltl authored and roboquat committed Aug 26, 2022
1 parent 77999d6 commit 3abc166
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions install/infra/modules/gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ resource "google_container_node_pool" "services" {
preemptible = false
image_type = "UBUNTU_CONTAINERD"
disk_type = "pd-ssd"
disk_size_gb = var.disk_size_gb
disk_size_gb = var.services_disk_size_gb
machine_type = var.services_machine_type
tags = ["gke-node", "${var.project}-gke"]
metadata = {
Expand Down Expand Up @@ -153,7 +153,7 @@ resource "google_container_node_pool" "workspaces" {
preemptible = false
image_type = "UBUNTU_CONTAINERD"
disk_type = "pd-ssd"
disk_size_gb = var.disk_size_gb
disk_size_gb = var.workspaces_disk_size_gb
machine_type = var.workspaces_machine_type
tags = ["gke-node", "${var.project}-gke"]
metadata = {
Expand Down
10 changes: 8 additions & 2 deletions install/infra/modules/gke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,18 @@ variable "max_node_count_services" {
default = 4
}

variable "disk_size_gb" {
variable "services_disk_size_gb" {
type = number
description = "Size of the node's disk."
description = "Size of the services node's disk."
default = 100
}

variable "workspaces_disk_size_gb" {
type = number
description = "Size of the workspace node's disk."
default = 360
}

variable "credentials" {
description = "Path to the JSON file storing Google service account credentials"
default = ""
Expand Down

0 comments on commit 3abc166

Please sign in to comment.