This commit is contained in:
parent
a84dbabc46
commit
48e9137489
1 changed files with 67 additions and 67 deletions
|
@ -13,74 +13,74 @@ spec:
|
|||
labels:
|
||||
app.kubernetes.io/name: umami
|
||||
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"
|
||||
initContainers:
|
||||
- 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:
|
||||
- name: umami
|
||||
image: umami
|
||||
args:
|
||||
- node
|
||||
- server.js
|
||||
env:
|
||||
- name: DATABASE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: default-cluster-pguser-umami
|
||||
key: uri
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: umami-config
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "384Mi"
|
||||
cpu: "100m"
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
protocol: TCP
|
||||
name: web
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/heartbeat
|
||||
port: 3000
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/heartbeat
|
||||
port: 3000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: false
|
||||
- name: umami
|
||||
image: umami
|
||||
args:
|
||||
- node
|
||||
- server.js
|
||||
env:
|
||||
- name: DATABASE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: default-cluster-pguser-umami
|
||||
key: uri
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: umami-config
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "384Mi"
|
||||
cpu: "100m"
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
protocol: TCP
|
||||
name: web
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/heartbeat
|
||||
port: 3000
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/heartbeat
|
||||
port: 3000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: false
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
|
|
Loading…
Reference in a new issue