mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
define resource limits for webapp & backend
This commit is contained in:
parent
9b759ec1d2
commit
8590f55a49
@ -39,6 +39,11 @@ spec:
|
|||||||
name: configmap-{{ .Release.Name }}-backend
|
name: configmap-{{ .Release.Name }}-backend
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: secret-{{ .Release.Name }}-backend
|
name: secret-{{ .Release.Name }}-backend
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 2G
|
||||||
|
requests:
|
||||||
|
memory: 1G
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 4000
|
- containerPort: 4000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
@ -40,5 +40,10 @@ spec:
|
|||||||
name: configmap-{{ .Release.Name }}-webapp
|
name: configmap-{{ .Release.Name }}-webapp
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: secret-{{ .Release.Name }}-webapp
|
name: secret-{{ .Release.Name }}-webapp
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 2G
|
||||||
|
requests:
|
||||||
|
memory: 1G
|
||||||
restartPolicy: {{ .Values.WEBAPP.CONTAINER_RESTART_POLICY }}
|
restartPolicy: {{ .Values.WEBAPP.CONTAINER_RESTART_POLICY }}
|
||||||
terminationGracePeriodSeconds: {{ .Values.WEBAPP.CONTAINER_TERMINATION_GRACE_PERIOD_SECONDS }}
|
terminationGracePeriodSeconds: {{ .Values.WEBAPP.CONTAINER_TERMINATION_GRACE_PERIOD_SECONDS }}
|
||||||
Loading…
x
Reference in New Issue
Block a user