diff --git a/share/dataset-pg/index.yaml b/share/dataset-pg/index.yaml index 76de994..42028c8 100644 --- a/share/dataset-pg/index.yaml +++ b/share/dataset-pg/index.yaml @@ -6,25 +6,6 @@ metadata: name: dataset-pg description: null options: - replicas: - default: 1 - examples: - - 1 - type: integer - databases: - default: [] - items: - properties: - name: - default: db - type: string - type: object - type: array - domain-name: - default: your_company.com - examples: - - your_company.com - type: string extentions: default: pool: @@ -131,35 +112,40 @@ options: type: object type: object type: object - storage: - default: 8Gi + issuer: + default: letsencrypt-prod examples: - - 8Gi + - letsencrypt-prod + type: string + ingress-class: + default: traefik + examples: + - traefik + type: string + databases: + default: [] + items: + properties: + name: + default: db + type: string + type: object + type: array + domain-name: + default: your_company.com + examples: + - your_company.com type: string sub-domain: default: dataset-pg examples: - dataset-pg type: string - issuer: - default: letsencrypt-prod + replicas: + default: 1 examples: - - letsencrypt-prod - type: string - roles: - default: [] - items: - properties: - name: - default: alt-account - type: string - type: object - type: array - ingress-class: - default: traefik - examples: - - traefik - type: string + - 1 + type: integer backups: default: enable: false @@ -214,6 +200,20 @@ options: default: backup-settings type: string type: object + storage: + default: 8Gi + examples: + - 8Gi + type: string + roles: + default: [] + items: + properties: + name: + default: alt-account + type: string + type: object + type: array dependencies: - dist: null category: dbo diff --git a/share/dataset-pg/postgrest.tf b/share/dataset-pg/postgrest.tf index 874eeac..00402e7 100644 --- a/share/dataset-pg/postgrest.tf +++ b/share/dataset-pg/postgrest.tf @@ -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