Skip to content

Commit

Permalink
Fix #349
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbedeir committed May 20, 2024
1 parent f30b260 commit 8cae7c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Terraform/GCP/GKE/gke.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ resource "google_container_node_pool" "primary_nodes" {
node_config {
preemptible = false
machine_type = "e2-medium"
#service_account = ""

// Assign nodes to the private subnet
tags = ["gke-node", "private-subnet"]
Expand All @@ -64,6 +63,7 @@ resource "helm_release" "cluster-autoscaler" {
value = "true"
}

// GKE-specific settings
set {
name = "autoDiscovery.clusterName"
value = "${var.name_prefix}-${var.environment}"
Expand Down
8 changes: 4 additions & 4 deletions Terraform/GCP/GKE/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
variable "project_id" {
description = "The name of the VPC to use."
type = string
default = "johnydev"
default = "PROJECT_ID"
}


variable "region" {
description = "The name of the VPC to use."
type = string
default = "europe-west1"
default = "REGION"
}

variable "name_prefix" {
description = "The name of the VPC to use."
type = string
default = "cluster-1"
default = "CLUSTER_NAME"
}

variable "environment" {
type = string
default = "testing-env"
default = "ENV_NAME"
}

0 comments on commit 8cae7c9

Please sign in to comment.