small fixes

This commit is contained in:
Remy Moll 2024-05-15 17:57:15 +02:00
parent 0215ecaf87
commit ab96719964
3 changed files with 25 additions and 5 deletions

View File

@ -16,8 +16,8 @@ spec:
image: affine
resources:
limits:
memory: "128Mi"
cpu: "500m"
memory: "512Mi"
cpu: "1"
env:
- name: AFFINE_SERVER_HOST
value: "affine.kluster.moll.re"
@ -38,12 +38,21 @@ spec:
secretKeyRef:
name: postgres-credentials
key: url
- name: NODE_OPTIONS
value: "--import=./scripts/register.js"
- name: NODE_ENV
value: "production"
ports:
- containerPort: 3010
volumeMounts:
- name: affine
- name: affine-data
mountPath: /root/.affine/storage
- name: affine-config
mountPath: /root/.affine/config
volumes:
- name: affine
- name: affine-data
persistentVolumeClaim:
claimName: affine-data
- name: affine-config
persistentVolumeClaim:
claimName: affine-config

View File

@ -4,7 +4,6 @@ metadata:
name: affine-postgres
spec:
instances: 1
imageName: postgres:16.2
bootstrap:
initdb:
owner: affine

View File

@ -9,3 +9,15 @@ spec:
resources:
requests:
storage: 15Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: affine-config
spec:
storageClassName: "nfs-client"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi