ToolJet/deploy/kubernetes/postgrest.yaml
Adish M 2ac17e2242
Chore: Tooljet database and marketplace are mandatory set for render (#11173)
* Chore: Tooljet database and marketplace are mandatory set on render and other deployment file for CE

* added PGRST_DB_PRE_CONFIG=postgrest.pre_config

* edited .env.example file
2024-10-30 17:31:08 +05:30

54 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: tooljet-postgrest
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
selector:
matchLabels:
component: tooljet-postgrest
template:
metadata:
labels:
component: tooljet-postgrest
spec:
containers:
- name: postgrest
image: postgrest/postgrest:v12.0.2
ports:
- containerPort: 3000
env:
- name: PGRST_DB_URI
valueFrom:
secretKeyRef:
name: server
key: pgrst_db_uri
- name: PGRST_JWT_SECRET
valueFrom:
secretKeyRef:
name: server
key: pgrst_db_uri
- name: PGRST_LOG_LEVEL
value: "info"
- name: PGRST_DB_PRE_CONFIG
value: postgrest.pre_config
---
apiVersion: v1
kind: Service
metadata:
name: tooljet-postgrest-service
labels:
name: tooljet-postgrest
spec:
type: NodePort
ports:
- port: 80
protocol: TCP
targetPort: 3000
selector:
component: tooljet-postgrest