44 lines
1.0 KiB
YAML
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 |