This commit is contained in:
2023-10-23 13:20:19 +02:00
parent f0455746a0
commit cd58b0dcc3
2 changed files with 48 additions and 44 deletions

View File

@@ -30,6 +30,7 @@ resource "kubectl_manifest" "postgrest_config" {
PGHOST: "${var.instance}-${var.component}-rw.${var.namespace}.svc"
PGPORT: "5432"
PGRST_OPENAPI_SERVER_PROXY_URI: "https://${local.prest-dns-name}"
PGRST_ADMIN_SERVER_PORT: "9000"
API_URL: "https://${local.prest-dns-name}"
EOF
}
@@ -84,11 +85,14 @@ resource "kubectl_manifest" "postgrest_deploy" {
- containerPort: 3000
name: http
protocol: TCP
- containerPort: 9000
name: admin
protocol: TCP
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: http
path: /live
port: admin
scheme: HTTP
periodSeconds: 10
successThreshold: 1
@@ -96,8 +100,8 @@ resource "kubectl_manifest" "postgrest_deploy" {
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: http
path: /ready
port: admin
scheme: HTTP
periodSeconds: 10
successThreshold: 1