small fixes
This commit is contained in:
parent
0215ecaf87
commit
ab96719964
@ -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
|
||||
|
@ -4,7 +4,6 @@ metadata:
|
||||
name: affine-postgres
|
||||
spec:
|
||||
instances: 1
|
||||
imageName: postgres:16.2
|
||||
bootstrap:
|
||||
initdb:
|
||||
owner: affine
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user