Skip to content

Commit

Permalink
bump gke
Browse files Browse the repository at this point in the history
  • Loading branch information
caruccio committed Oct 6, 2023
1 parent 4d46ba4 commit 2841054
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
20 changes: 12 additions & 8 deletions templates/gke/main.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
module "gke" {
source = "github.com/getupcloud/terraform-cluster-gke?ref=v2.1.1"
source = "github.com/getupcloud/terraform-cluster-gke?ref=v2.2.0"

# cluster basics
customer_name = var.customer_name
cluster_name = var.cluster_name
cluster_sla = var.cluster_sla
use_kubeconfig = var.use_kubeconfig
pre_create = var.pre_create
post_create = var.post_create
modules = local.modules_result
customer_name = var.customer_name
cluster_name = var.cluster_name
cluster_sla = var.cluster_sla
use_kubeconfig = var.use_kubeconfig
pre_create = var.pre_create
post_create = var.post_create
modules = local.modules_result
enable_binary_authorization = var.enable_binary_authorization
enable_cost_allocation = var.enable_cost_allocation
monitoring_enable_managed_prometheus = var.monitoring_enable_managed_prometheus
monitoring_enabled_components = var.monitoring_enabled_components

# monitoring and operations
cronitor_enabled = var.cronitor_enabled
Expand Down
24 changes: 24 additions & 0 deletions templates/gke/variables-provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,30 @@ variable "enable_private_nodes" {
default = false
}

variable "enable_binary_authorization" {
description = "Enable BinAuthZ Admission controller"
type = bool
default = false
}

variable "monitoring_enable_managed_prometheus" {
description = "Configuration for Managed Service for Prometheus. Whether or not the managed collection is enabled."
type = bool
default = false
}

variable "monitoring_enabled_components" {
description = "List of services to monitor: SYSTEM_COMPONENTS, WORKLOADS. Empty list is default GKE configuration."
type = list(string)
default = []
}

variable "enable_cost_allocation" {
description = "Enables Cost Allocation Feature and the cluster name and namespace of your GKE workloads appear in the labels field of the billing export to BigQuery"
type = bool
default = false
}

variable "master_authorized_networks" {
description = "List of master authorized networks. If none are provided, disallow external access (except the cluster node IPs, which GKE automatically whitelists)."
type = list(object({ cidr_block = string, display_name = string }))
Expand Down

0 comments on commit 2841054

Please sign in to comment.