Skip to content

Commit

Permalink
deployment: fix config format
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatoleAM committed Dec 1, 2023
1 parent 11fd595 commit e9b739a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
3 changes: 0 additions & 3 deletions terraform/config.template.yaml

This file was deleted.

19 changes: 9 additions & 10 deletions terraform/deployment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ resource "kubernetes_secret" "app" {
}

data = {
"config.yaml" = templatefile("${path.module}/config.template.yaml", {
website_url = "https://${local.infra.primary_zone}"
gql_api_url = "https://${local.infra.secondary_zone}/v3/gql"
})
WEBSITE_URL = "https://${local.infra.primary_zone}"
GQL_API_URL = "http://api:3000/v3/gql"
WEBSITE_BIND : "0.0.0.0:3000"
}
}

Expand Down Expand Up @@ -62,12 +61,6 @@ resource "kubernetes_deployment" "app" {
protocol = "TCP"
}

env_from {
secret_ref {
name = kubernetes_secret.app.metadata[0].name
}
}

resources {
requests = {
cpu = "10m"
Expand All @@ -79,6 +72,12 @@ resource "kubernetes_deployment" "app" {
}
}

env_from {
secret_ref {
name = kubernetes_secret.app.metadata[0].name
}
}

liveness_probe {
http_get {
port = "http"
Expand Down

0 comments on commit e9b739a

Please sign in to comment.