Skip to content

Commit

Permalink
Change location param in cluster/node definitions to zone rather than…
Browse files Browse the repository at this point in the history
… region
  • Loading branch information
rawanmahdi committed Nov 16, 2023
1 parent 4e2e0db commit 77bf1f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloud-infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ provider "google" {

resource "google_container_cluster" "automl_cluster" {
name = "automl-cluster"
location = var.region
location = var.zone
project = var.project

remove_default_node_pool = true
Expand All @@ -22,7 +22,7 @@ resource "google_container_cluster" "automl_cluster" {
//single node "node pool" for frontend and backend pods
resource "google_container_node_pool" "febe_node_pool" {
name = "frontend-backend-node-pool"
location = var.region
location = var.zone
cluster = google_container_cluster.automl_cluster.name
node_count = 1

Expand All @@ -45,7 +45,7 @@ resource "google_container_node_pool" "febe_node_pool" {
//pool for machine learning (allows us to adjust the compute later if needed)
resource "google_container_node_pool" "ml_node_pool" {
name = "machine-learning-node-pool"
location = var.region
location = var.zone
cluster = google_container_cluster.automl_cluster.name
node_count = 1

Expand Down

0 comments on commit 77bf1f4

Please sign in to comment.