small fixes
This commit is contained in:
parent
0215ecaf87
commit
ab96719964
@ -16,8 +16,8 @@ spec:
|
|||||||
image: affine
|
image: affine
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: "128Mi"
|
memory: "512Mi"
|
||||||
cpu: "500m"
|
cpu: "1"
|
||||||
env:
|
env:
|
||||||
- name: AFFINE_SERVER_HOST
|
- name: AFFINE_SERVER_HOST
|
||||||
value: "affine.kluster.moll.re"
|
value: "affine.kluster.moll.re"
|
||||||
@ -38,12 +38,21 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: postgres-credentials
|
name: postgres-credentials
|
||||||
key: url
|
key: url
|
||||||
|
- name: NODE_OPTIONS
|
||||||
|
value: "--import=./scripts/register.js"
|
||||||
|
- name: NODE_ENV
|
||||||
|
value: "production"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3010
|
- containerPort: 3010
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: affine
|
- name: affine-data
|
||||||
mountPath: /root/.affine/storage
|
mountPath: /root/.affine/storage
|
||||||
|
- name: affine-config
|
||||||
|
mountPath: /root/.affine/config
|
||||||
volumes:
|
volumes:
|
||||||
- name: affine
|
- name: affine-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: affine-data
|
claimName: affine-data
|
||||||
|
- name: affine-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: affine-config
|
||||||
|
@ -4,7 +4,6 @@ metadata:
|
|||||||
name: affine-postgres
|
name: affine-postgres
|
||||||
spec:
|
spec:
|
||||||
instances: 1
|
instances: 1
|
||||||
imageName: postgres:16.2
|
|
||||||
bootstrap:
|
bootstrap:
|
||||||
initdb:
|
initdb:
|
||||||
owner: affine
|
owner: affine
|
||||||
|
@ -9,3 +9,15 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 15Gi
|
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