feat(helm): add resource requests and limits to jobs, adjust resources for deployment
This commit is contained in:
parent
385fa9998b
commit
ccdc5fb9b6
4 changed files with 31 additions and 8 deletions
|
|
@ -53,4 +53,4 @@ spec:
|
|||
- secretRef:
|
||||
name: {{ .Release.Name }}-nextauth
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
{{- toYaml .Values.backend.resources | nindent 12 }}
|
||||
|
|
|
|||
|
|
@ -31,4 +31,6 @@ spec:
|
|||
name: {{ .Release.Name }}-database
|
||||
- secretRef:
|
||||
name: {{ .Release.Name }}-nextauth
|
||||
resources:
|
||||
{{- toYaml .Values.migration.resources | nindent 10 }}
|
||||
restartPolicy: Never
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -19,12 +19,31 @@ service:
|
|||
portName: http
|
||||
portNumber: 3000
|
||||
|
||||
resources:
|
||||
backend:
|
||||
resources:
|
||||
limits:
|
||||
cpu: 300m
|
||||
memory: 512Mi
|
||||
requests:
|
||||
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:
|
||||
|
|
|
|||
Reference in a new issue