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:
|
- secretRef:
|
||||||
name: {{ .Release.Name }}-nextauth
|
name: {{ .Release.Name }}-nextauth
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.backend.resources | nindent 12 }}
|
||||||
|
|
|
||||||
|
|
@ -31,4 +31,6 @@ spec:
|
||||||
name: {{ .Release.Name }}-database
|
name: {{ .Release.Name }}-database
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Release.Name }}-nextauth
|
name: {{ .Release.Name }}-nextauth
|
||||||
|
resources:
|
||||||
|
{{- toYaml .Values.migration.resources | nindent 10 }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,8 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /app/cache
|
- mountPath: /app/cache
|
||||||
name: cache-volume
|
name: cache-volume
|
||||||
|
resources:
|
||||||
|
{{- toYaml .Values.seed.resources | nindent 10 }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache-volume
|
- name: cache-volume
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,32 @@ service:
|
||||||
portName: http
|
portName: http
|
||||||
portNumber: 3000
|
portNumber: 3000
|
||||||
|
|
||||||
resources:
|
backend:
|
||||||
limits:
|
resources:
|
||||||
cpu: 300m
|
limits:
|
||||||
memory: 512Mi
|
cpu: 100m
|
||||||
requests:
|
memory: 256Mi
|
||||||
cpu: 100m
|
requests:
|
||||||
memory: 128Mi
|
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:
|
backoffice:
|
||||||
env: null # allowed values: development | test | production
|
env: null # allowed values: development | test | production
|
||||||
|
|
|
||||||
Reference in a new issue