chore: fix missing resource limits
This commit is contained in:
parent
c3776634fb
commit
f0803654c1
|
@ -50,3 +50,10 @@ spec:
|
||||||
key: logs-debug
|
key: logs-debug
|
||||||
- name: DRONE_RESOURCE_REQUEST_CPU
|
- name: DRONE_RESOURCE_REQUEST_CPU
|
||||||
value: "500"
|
value: "500"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 256Mi
|
||||||
|
cpu: 500m
|
||||||
|
limits:
|
||||||
|
memory: 1024Mi
|
||||||
|
cpu: 1500m
|
||||||
|
|
|
@ -30,6 +30,13 @@ spec:
|
||||||
- mountPath: /scripts
|
- mountPath: /scripts
|
||||||
name: scripts
|
name: scripts
|
||||||
command: ["/bin/sh", "/scripts/init.sh"]
|
command: ["/bin/sh", "/scripts/init.sh"]
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 64Mi
|
||||||
|
cpu: 100m
|
||||||
|
limits:
|
||||||
|
memory: 128Mi
|
||||||
|
cpu: 500m
|
||||||
- image: jbergknoff/postgresql-client@sha256:45e175ebb700cfd46e23a610477c3576550055ef40c394e663623946a5eced39
|
- image: jbergknoff/postgresql-client@sha256:45e175ebb700cfd46e23a610477c3576550055ef40c394e663623946a5eced39
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: init-invidious-db
|
name: init-invidious-db
|
||||||
|
@ -69,6 +76,13 @@ spec:
|
||||||
name: invidious-credentials
|
name: invidious-credentials
|
||||||
key: database-password
|
key: database-password
|
||||||
optional: false
|
optional: false
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 128Mi
|
||||||
|
cpu: 100m
|
||||||
|
limits:
|
||||||
|
memory: 256Mi
|
||||||
|
cpu: 1000m
|
||||||
workingDir: /data/repo
|
workingDir: /data/repo
|
||||||
command: ["sh", "docker/init-invidious-db.sh"]
|
command: ["sh", "docker/init-invidious-db.sh"]
|
||||||
containers:
|
containers:
|
||||||
|
@ -100,11 +114,11 @@ spec:
|
||||||
name: config
|
name: config
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "128Mi"
|
memory: 128Mi
|
||||||
cpu: "100m"
|
cpu: 100m
|
||||||
limits:
|
limits:
|
||||||
memory: "256Mi"
|
memory: 256Mi
|
||||||
cpu: "500m"
|
cpu: 1000m
|
||||||
lifecycle:
|
lifecycle:
|
||||||
preStop:
|
preStop:
|
||||||
exec:
|
exec:
|
||||||
|
|
|
@ -44,6 +44,13 @@ spec:
|
||||||
value: /tmp/gitea
|
value: /tmp/gitea
|
||||||
- name: TMPDIR
|
- name: TMPDIR
|
||||||
value: /tmp/gitea
|
value: /tmp/gitea
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 128Mi
|
||||||
|
cpu: 100m
|
||||||
|
limits:
|
||||||
|
memory: 256Mi
|
||||||
|
cpu: 1500m
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: data
|
name: data
|
||||||
|
@ -80,6 +87,13 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: gitea-config
|
name: gitea-config
|
||||||
key: admin-password
|
key: admin-password
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 128Mi
|
||||||
|
cpu: 100m
|
||||||
|
limits:
|
||||||
|
memory: 256Mi
|
||||||
|
cpu: 1500m
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: data
|
name: data
|
||||||
|
@ -127,8 +141,11 @@ spec:
|
||||||
name: data
|
name: data
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "128Mi"
|
memory: 128Mi
|
||||||
cpu: "100m"
|
cpu: 100m
|
||||||
|
limits:
|
||||||
|
memory: 256Mi
|
||||||
|
cpu: 1500m
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: http
|
port: http
|
||||||
|
|
|
@ -54,14 +54,13 @@ spec:
|
||||||
- mountPath: /config/log.config
|
- mountPath: /config/log.config
|
||||||
subPath: log.config
|
subPath: log.config
|
||||||
name: config
|
name: config
|
||||||
# TODO: validate resource limits
|
resources:
|
||||||
# resources:
|
requests:
|
||||||
# requests:
|
memory: 256Mi
|
||||||
# memory: "128Mi"
|
cpu: 250m
|
||||||
# cpu: "500m"
|
limits:
|
||||||
# limits:
|
memory: 512Mi
|
||||||
# memory: "512Mi"
|
cpu: 2000m
|
||||||
# cpu: "1000m"
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
|
|
Loading…
Reference in New Issue