mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-25 12:21:31 +00:00
111 lines
2.1 KiB
YAML
111 lines
2.1 KiB
YAML
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
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: postgres
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 5Gi
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: postgres
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: postgres
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: postgres
|
|
spec:
|
|
containers:
|
|
- name: postgres
|
|
image: postgres:11.2-alpine
|
|
resources:
|
|
limits:
|
|
memory: 256Mi
|
|
cpu: 512m
|
|
ports:
|
|
- containerPort: 5432
|
|
envFrom:
|
|
- configMapRef:
|
|
name: postgres
|
|
volumeMounts:
|
|
- name: postgres
|
|
mountPath: /var/lib/postgresql/data
|
|
volumes:
|
|
- name: postgres
|
|
persistentVolumeClaim:
|
|
claimName: postgres
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: postgres
|
|
spec:
|
|
selector:
|
|
app: postgres
|
|
ports:
|
|
- port: 5432
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: lemmy-server--dev
|
|
data:
|
|
LEMMY_FRONT_END_DIR: /opt/lemmy/ui--dev/dist # not actually used here, polyfill for monolith
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: lemmy-server--dev
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: lemmy-server--dev
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: lemmy-server--dev
|
|
spec:
|
|
containers:
|
|
- name: lemmy-server--dev
|
|
image: registry.gitlab.com/pojntfx/lemmy/server.dev
|
|
envFrom:
|
|
- configMapRef:
|
|
name: postgres
|
|
- configMapRef:
|
|
name: lemmy-server--dev
|
|
resources:
|
|
limits:
|
|
memory: 512Mi
|
|
cpu: 512m
|
|
ports:
|
|
- containerPort: 8536
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: lemmy-server--dev
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app: lemmy-server--dev
|
|
ports:
|
|
- port: 8536
|
|
nodePort: 30001
|