fp/charts/fp/templates/postgrest.yaml
CJ_Clippy ebe65e067d
Some checks failed
ci / build (push) Failing after 7m5s
progress
2024-07-30 12:34:25 -08:00

44 lines
1.0 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: postgrest
namespace: futureporn
labels:
app: postgrest
spec:
replicas: {{ .Values.postgrest.replicas }}
selector:
matchLabels:
app: postgrest
template:
metadata:
labels:
app: postgrest
spec:
containers:
- name: postgrest
image: "{{ .Values.postgrest.image }}"
ports:
- name: http
containerPort: {{ .Values.postgrest.port }}
env:
- name: PGRST_DB_ANON_ROLE
value: anonymous
- name: PGRST_SERVER_PORT
value: "{{ .Values.postgrest.port }}"
- name: PGRST_DB_SCHEMAS
value: "{{ .Values.postgrest.schemas }}"
- name: PGRST_DB_URI
valueFrom:
secretKeyRef:
name: postgrest
key: dbUri
- name: PGRST_JWT_SECRET
valueFrom:
secretKeyRef:
name: postgrest
key: jwtSecret