Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Cluster Locations to be Zones #131

Merged
merged 2 commits into from
Nov 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cloud-infra/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variable "project" { default = "automateml" }
variable "region" { default = "us-east1" }
variable "zone" { default = "us-east1-a" }
variable "zone" { default = "us-east1-b" }
variable "sa_email" { default = "owner-sa@automateml.iam.gserviceaccount.com" }

provider "google" {
Expand All @@ -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
Loading