Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure cluster autoscaling from sigstore module #427

Merged
merged 1 commit into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}