chore(linkwarden): optimize startup
All checks were successful
Renovate / renovate (push) Successful in 23s

This commit is contained in:
Peter 2024-05-07 18:39:14 +02:00
parent a9df520f9c
commit 7846f8c297
Signed by: prskr
GPG key ID: F56BED6903BC5E37

View file

@ -22,9 +22,15 @@ spec:
volumeMounts: volumeMounts:
- name: node-cache - name: node-cache
mountPath: /home/node/.cache mountPath: /home/node/.cache
- name: run-prisma-migrations
image: linkwarden
command: ["/data/node_modules/.bin/prisma"]
args: ["migrate", "deploy"]
containers: containers:
- name: linkwarden - name: linkwarden
image: linkwarden image: linkwarden
command: ["/data/node_modules/.bin/next"]
args: ["start"]
env: env:
- name: DATABASE_URL - name: DATABASE_URL
valueFrom: valueFrom:
@ -68,6 +74,36 @@ spec:
drop: drop:
- ALL - ALL
readOnlyRootFilesystem: false readOnlyRootFilesystem: false
- name: linkwarden-worker
image: linkwarden
command: ["/data/node_modules/.bin/ts-node"]
args: ["--transpile-only", "--skip-project", "scripts/worker.ts"]
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: default-cluster-pguser-linkwarden
key: uri
envFrom:
- secretRef:
name: linkwarden-config
volumeMounts:
- name: next-cache
mountPath: /data/.next/cache
- name: node-cache
mountPath: /home/node/.cache
resources:
requests:
memory: "384Mi"
cpu: "50m"
limits:
memory: "1500Mi"
cpu: "500m"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
affinity: affinity:
nodeAffinity: nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution: preferredDuringSchedulingIgnoredDuringExecution: