fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user