Skip to content

Commit

Permalink
Allow for explicitly setting monitoring components.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBergmeier6176 committed Jan 10, 2024
1 parent c1ee3da commit 169fe0b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tf/service_cluster/container.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ resource "google_container_cluster" "main" {
]
}

monitoring_config {
enable_components = var.enable_monitoring_components
}

}
9 changes: 9 additions & 0 deletions tf/service_cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ variable "container_engine_version" {
})
}

variable "enable_monitoring_components" {
type = list(string)
default = ["SYSTEM_COMPONENTS"]
description = <<EOF
The GKE components exposing metrics.
Supported values include: `SYSTEM_COMPONENTS`, `APISERVER`, `SCHEDULER`, `CONTROLLER_MANAGER`, `STORAGE`, `HPA`, `POD`, `DAEMONSET`, `DEPLOYMENT` and `STATEFULSET`
EOF
}

variable "master_cidr_block" {
type = string
}
Expand Down

0 comments on commit 169fe0b

Please sign in to comment.