feat(umami): avoid DB check when starting container
All checks were successful
Renovate / renovate (push) Successful in 21s
All checks were successful
Renovate / renovate (push) Successful in 21s
This commit is contained in:
parent
d56ccb2fa6
commit
a84dbabc46
1 changed files with 27 additions and 0 deletions
|
@ -13,9 +13,36 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: umami
|
app.kubernetes.io/name: umami
|
||||||
spec:
|
spec:
|
||||||
|
initContainer:
|
||||||
|
- name: init-db
|
||||||
|
image: umami
|
||||||
|
command:
|
||||||
|
- /app/node_modules/.bin/npm-run-all
|
||||||
|
args:
|
||||||
|
- check-db
|
||||||
|
- update-tracker
|
||||||
|
env:
|
||||||
|
- name: DATABASE_URL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: default-cluster-pguser-umami
|
||||||
|
key: uri
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: umami-config
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "256Mi"
|
||||||
|
cpu: "150m"
|
||||||
|
limits:
|
||||||
|
memory: "384Mi"
|
||||||
|
cpu: "250m"
|
||||||
containers:
|
containers:
|
||||||
- name: umami
|
- name: umami
|
||||||
image: umami
|
image: umami
|
||||||
|
args:
|
||||||
|
- node
|
||||||
|
- server.js
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
Loading…
Reference in a new issue