chore: fix missing resource limits

This commit is contained in:
Rob Watson 2023-09-10 20:44:15 +02:00
parent c3776634fb
commit f0803654c1
4 changed files with 51 additions and 14 deletions

View File

@ -50,3 +50,10 @@ spec:
key: logs-debug
- name: DRONE_RESOURCE_REQUEST_CPU
value: "500"
resources:
requests:
memory: 256Mi
cpu: 500m
limits:
memory: 1024Mi
cpu: 1500m

View File

@ -30,6 +30,13 @@ spec:
- mountPath: /scripts
name: scripts
command: ["/bin/sh", "/scripts/init.sh"]
resources:
requests:
memory: 64Mi
cpu: 100m
limits:
memory: 128Mi
cpu: 500m
- image: jbergknoff/postgresql-client@sha256:45e175ebb700cfd46e23a610477c3576550055ef40c394e663623946a5eced39
imagePullPolicy: IfNotPresent
name: init-invidious-db
@ -69,6 +76,13 @@ spec:
name: invidious-credentials
key: database-password
optional: false
resources:
requests:
memory: 128Mi
cpu: 100m
limits:
memory: 256Mi
cpu: 1000m
workingDir: /data/repo
command: ["sh", "docker/init-invidious-db.sh"]
containers:
@ -100,11 +114,11 @@ spec:
name: config
resources:
requests:
memory: "128Mi"
cpu: "100m"
memory: 128Mi
cpu: 100m
limits:
memory: "256Mi"
cpu: "500m"
memory: 256Mi
cpu: 1000m
lifecycle:
preStop:
exec:

View File

@ -44,6 +44,13 @@ spec:
value: /tmp/gitea
- name: TMPDIR
value: /tmp/gitea
resources:
requests:
memory: 128Mi
cpu: 100m
limits:
memory: 256Mi
cpu: 1500m
volumeMounts:
- mountPath: /data
name: data
@ -80,6 +87,13 @@ spec:
secretKeyRef:
name: gitea-config
key: admin-password
resources:
requests:
memory: 128Mi
cpu: 100m
limits:
memory: 256Mi
cpu: 1500m
volumeMounts:
- mountPath: /data
name: data
@ -127,8 +141,11 @@ spec:
name: data
resources:
requests:
memory: "128Mi"
cpu: "100m"
memory: 128Mi
cpu: 100m
limits:
memory: 256Mi
cpu: 1500m
livenessProbe:
tcpSocket:
port: http

View File

@ -54,14 +54,13 @@ spec:
- mountPath: /config/log.config
subPath: log.config
name: config
# TODO: validate resource limits
# resources:
# requests:
# memory: "128Mi"
# cpu: "500m"
# limits:
# memory: "512Mi"
# cpu: "1000m"
resources:
requests:
memory: 256Mi
cpu: 250m
limits:
memory: 512Mi
cpu: 2000m
livenessProbe:
httpGet:
path: /health