chore(linkwarden): optimize startup
All checks were successful
Renovate / renovate (push) Successful in 23s
All checks were successful
Renovate / renovate (push) Successful in 23s
This commit is contained in:
parent
a9df520f9c
commit
7846f8c297
1 changed files with 36 additions and 0 deletions
|
@ -22,9 +22,15 @@ spec:
|
|||
volumeMounts:
|
||||
- name: node-cache
|
||||
mountPath: /home/node/.cache
|
||||
- name: run-prisma-migrations
|
||||
image: linkwarden
|
||||
command: ["/data/node_modules/.bin/prisma"]
|
||||
args: ["migrate", "deploy"]
|
||||
containers:
|
||||
- name: linkwarden
|
||||
image: linkwarden
|
||||
command: ["/data/node_modules/.bin/next"]
|
||||
args: ["start"]
|
||||
env:
|
||||
- name: DATABASE_URL
|
||||
valueFrom:
|
||||
|
@ -68,6 +74,36 @@ spec:
|
|||
drop:
|
||||
- ALL
|
||||
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:
|
||||
nodeAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
|
|
Loading…
Reference in a new issue