This commit is contained in:
2023-10-23 13:57:21 +02:00
parent 63f4b3377c
commit 0d827d671e
2 changed files with 45 additions and 62 deletions

View File

@@ -107,7 +107,8 @@ resource "kubectl_manifest" "postgrest_deploy" {
successThreshold: 1
timeoutSeconds: 1
EOF
], var.extentions.postgrest.swagger.enable&&false?[<<-EOF
], var.extentions.postgrest.swagger.enable?[<<-EOF
- name: swagger
securityContext:
fsGroup: 1000
@@ -123,24 +124,6 @@ EOF
envFrom:
- configMapRef:
name: "${var.component}-${var.instance}-postgrest"
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: swagger
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: swagger
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
EOF
]:[""]))
}