Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit e9b739a

Browse files
committed
deployment: fix config format
1 parent 11fd595 commit e9b739a

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

terraform/config.template.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

terraform/deployment.tf

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ resource "kubernetes_secret" "app" {
1111
}
1212

1313
data = {
14-
"config.yaml" = templatefile("${path.module}/config.template.yaml", {
15-
website_url = "https://${local.infra.primary_zone}"
16-
gql_api_url = "https://${local.infra.secondary_zone}/v3/gql"
17-
})
14+
WEBSITE_URL = "https://${local.infra.primary_zone}"
15+
GQL_API_URL = "http://api:3000/v3/gql"
16+
WEBSITE_BIND : "0.0.0.0:3000"
1817
}
1918
}
2019

@@ -62,12 +61,6 @@ resource "kubernetes_deployment" "app" {
6261
protocol = "TCP"
6362
}
6463

65-
env_from {
66-
secret_ref {
67-
name = kubernetes_secret.app.metadata[0].name
68-
}
69-
}
70-
7164
resources {
7265
requests = {
7366
cpu = "10m"
@@ -79,6 +72,12 @@ resource "kubernetes_deployment" "app" {
7972
}
8073
}
8174

75+
env_from {
76+
secret_ref {
77+
name = kubernetes_secret.app.metadata[0].name
78+
}
79+
}
80+
8281
liveness_probe {
8382
http_get {
8483
port = "http"

0 commit comments

Comments
 (0)