Skip to content

Commit 9af7b11

Browse files
authored
Merge pull request #184 from sassoftware/staging
5.1.0 - June 15, 2023
2 parents 3a49318 + 57ccb78 commit 9af7b11

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ WORKDIR /viya4-iac-gcp
1414
COPY --from=terraform /bin/terraform /bin/terraform
1515
COPY . .
1616

17-
RUN apt-get install -y jq \
17+
RUN apt-get update && apt-get upgrade -y \
18+
&& apt-get install -y jq \
1819
&& curl -sLO https://storage.googleapis.com/kubernetes-release/release/v$KUBECTL_VERSION/bin/linux/amd64/kubectl \
1920
&& chmod 755 ./kubectl /viya4-iac-gcp/docker-entrypoint.sh \
2021
&& mv ./kubectl /usr/local/bin/kubectl \

docs/CONFIG-VARS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Supported configuration variables are listed in the table below. All variables
2020
- [For `storage_type=ha` only (Google Filestore)](#for-storage_typeha-only-google-filestore)
2121
- [Google Container Registry (GCR)](#google-container-registry-gcr)
2222
- [Postgres Servers](#postgres-servers)
23+
- [Monitoring](#monitoring)
2324

2425
Terraform input variables can be set in the following ways:
2526
- Individually, with the [-var command line option](https://www.terraform.io/docs/configuration/variables.html#variables-on-the-command-line).
@@ -293,3 +294,14 @@ postgres_servers = {
293294
}
294295
}
295296
```
297+
298+
## Monitoring
299+
300+
| Name | Description | Type | Default | Notes |
301+
| :--- | ---: | ---: | ---: | ---: |
302+
| create_gke_monitoring_service | Enable GKE metrics from pods in the cluster to the Google Cloud Monitoring API | boolean | false | |
303+
| gke_monitoring_service | Value of the Google Cloud Monitoring API to use if monitoring is enabled. Values are: monitoring.googleapis.com, monitoring.googleapis.com/kubernetes, none | string | "none" | |
304+
| gke_monitoring_enabled_components | List of services to monitor: SYSTEM_COMPONENTS, WORKLOADS (WORKLOADS deprecated in 1.24). | list of strings | ["SYSTEM_COMPONENTS"] | |
305+
| enable_managed_prometheus | Enable Google Cloud [Managed Service for Prometheus](https://cloud.google.com/stackdriver/docs/managed-prometheus) for your cluster | boolean | false | |
306+
307+
Note: For additional details about Google Kubernetes Engine (GKE) integration with Cloud Logging and Cloud Monitoring, including Google Cloud [Managed Service for Prometheus](https://cloud.google.com/stackdriver/docs/managed-prometheus), view the ["Overview of Google Cloud's operations suite for GKE" documentation](https://cloud.google.com/stackdriver/docs/solutions/gke)

main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ module "gke" {
122122
grant_registry_access = var.enable_registry_access
123123

124124
monitoring_service = var.create_gke_monitoring_service ? var.gke_monitoring_service : "none"
125+
monitoring_enabled_components = var.create_gke_monitoring_service ? var.gke_monitoring_enabled_components : []
126+
127+
monitoring_enable_managed_prometheus = var.enable_managed_prometheus
125128

126129
cluster_autoscaling = var.enable_cluster_autoscaling ? {
127130
enabled : true,

variables.tf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ variable "enable_registry_access" {
376376
default = true
377377
}
378378

379-
# Azure Monitor
379+
# GKE Monitoring
380380
variable "create_gke_monitoring_service" {
381381
type = bool
382382
description = "Enable GKE metrics from pods in the cluster to the Google Cloud Monitoring API."
@@ -389,6 +389,18 @@ variable "gke_monitoring_service" {
389389
default = "none"
390390
}
391391

392+
variable "gke_monitoring_enabled_components" {
393+
type = list(string)
394+
description = "List of services to monitor: SYSTEM_COMPONENTS, WORKLOADS (WORKLOADS deprecated in 1.24)."
395+
default = ["SYSTEM_COMPONENTS"]
396+
}
397+
398+
variable "enable_managed_prometheus" {
399+
type = bool
400+
description = "Enable Google Cloud Managed Service for Prometheus for your cluster"
401+
default = false
402+
}
403+
392404
# Network
393405
variable "vpc_name" {
394406
type = string

0 commit comments

Comments
 (0)