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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue