apiVersion: v1
kind: ConfigMap
metadata:
name: postgres
data:
POSTGRES_PASSWORD: rrr
POSTGRES_USER: rrr
POSTGRES_DB: rrr
PGDATA: /var/lib/postgresql/data/pgdata
DATABASE_URL: postgres://rrr:rrr@postgres:5432/rrr
---
kind: PersistentVolumeClaim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
apiVersion: apps/v1
kind: Deployment
selector:
matchLabels:
app: postgres
template:
labels:
containers:
- name: postgres
image: postgres:11.2-alpine
limits:
memory: 256Mi
cpu: 512m
ports:
- containerPort: 5432
envFrom:
- configMapRef:
volumeMounts:
mountPath: /var/lib/postgresql/data
volumes:
persistentVolumeClaim:
claimName: postgres
kind: Service
- port: 5432
name: lemmy-server--dev
LEMMY_FRONT_END_DIR: /opt/lemmy/ui--dev/dist # not actually used here, polyfill for monolith
app: lemmy-server--dev
- name: lemmy-server--dev
image: registry.gitlab.com/pojntfx/lemmy/server.dev
cpu: 256m
- containerPort: 8536
type: NodePort
- port: 8536
nodePort: 30001