Skip to content

Commit

Permalink
Configure cluster autoscaling from sigstore module (#427)
Browse files Browse the repository at this point in the history
we need this to increase the CPU in staging.

Signed-off-by: Priya Wadhwa <[email protected]>

Signed-off-by: Priya Wadhwa <[email protected]>
  • Loading branch information
priyawadhwa authored Oct 18, 2022
1 parent 1818a4e commit 43e3597
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/gcp/modules/sigstore/sigstore.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ module "gke-cluster" {
services_secondary_range_name = module.network.secondary_ip_range.1.range_name
cluster_network_tag = var.cluster_network_tag

initial_node_count = var.initial_node_count
autoscaling_min_node = var.autoscaling_min_node
autoscaling_max_node = var.autoscaling_max_node

bastion_ip_address = module.bastion.ip_address

depends_on = [
Expand Down
14 changes: 14 additions & 0 deletions terraform/gcp/modules/sigstore/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,17 @@ variable "ctlog_shards" {
description = "Array of CTLog shards to create. Entry should be something like [2021, 2022], which would then have 2 independent CTLog shards backed by ctlog-2021 and ctlog-2022 Cloud SQL instances."
default = []
}


// Cluster node pool
variable "initial_node_count" {
type = number
}

variable "autoscaling_min_node" {
type = number
}

variable "autoscaling_max_node" {
type = number
}

0 comments on commit 43e3597

Please sign in to comment.