1
0
Fork 0

feat(helm): add resource requests and limits to jobs, adjust resources for deployment

This commit is contained in:
Vojtěch Mareš 2023-07-05 16:56:05 +02:00
parent 385fa9998b
commit ccdc5fb9b6
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
4 changed files with 31 additions and 8 deletions

View file

@ -53,4 +53,4 @@ spec:
- secretRef:
name: {{ .Release.Name }}-nextauth
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.backend.resources | nindent 12 }}

View file

@ -31,4 +31,6 @@ spec:
name: {{ .Release.Name }}-database
- secretRef:
name: {{ .Release.Name }}-nextauth
resources:
{{- toYaml .Values.migration.resources | nindent 10 }}
restartPolicy: Never

View file

@ -39,6 +39,8 @@ spec:
volumeMounts:
- mountPath: /app/cache
name: cache-volume
resources:
{{- toYaml .Values.seed.resources | nindent 10 }}
restartPolicy: Never
volumes:
- name: cache-volume

View file

@ -19,13 +19,32 @@ service:
portName: http
portNumber: 3000
resources:
limits:
cpu: 300m
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi
backend:
resources:
limits:
cpu: 100m
memory: 256Mi
requests:
cpu: 50m
memory: 128Mi
migration:
resources:
limits:
cpu: 50m
memory: 128Mi
requests:
cpu: 50m
memory: 128Mi
seed:
resources:
limits:
cpu: 50m
memory: 128Mi
requests:
cpu: 50m
memory: 128Mi
backoffice:
env: null # allowed values: development | test | production