Skip to content

Commit

Permalink
terraform updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tkallady committed Jan 9, 2024
1 parent 27c8ecb commit 868d2c2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
9 changes: 2 additions & 7 deletions .terraform/base/api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "kubernetes_deployment" "api" {
}
}
container {
image = "australia-southeast1-docker.pkg.dev/galatea-396601/galatea/api"
image = "australia-southeast1-docker.pkg.dev/dsp-registry-410602/docker/galatea-api:latest"
name = "api-${var.env}"
port {
container_port = 8000
Expand Down Expand Up @@ -115,16 +115,11 @@ resource "kubernetes_deployment" "api" {
mount_path = "/etc/secret-volume"
read_only = true
}
resources {
requests = {
cpu = "0.5"
memory = "0.5Gi"
}
}
}

}
}

}
}

Expand Down
19 changes: 12 additions & 7 deletions .terraform/base/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@


data "terraform_remote_state" "gke" {
backend = "gcs"
config={
bucket="terraform-state-galatea"
prefix="dev"
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "5.5.0"
}
kubernetes = {
source = "hashicorp/helm"
version = "2.5.1"
source = "hashicorp/kubernetes"
version = ">= 2.0.1"
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion .terraform/base/worker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ resource "kubernetes_deployment" "worker" {

termination_grace_period_seconds = 32400 #9hrs
container {
image = "australia-southeast1-docker.pkg.dev/galatea-396601/galatea/worker"
image = "australia-southeast1-docker.pkg.dev/dsp-registry-410602/docker/galatea-worker:latest"
name = "worker-${var.env}"
port {
container_port = 8000
Expand Down

0 comments on commit 868d2c2

Please sign in to comment.