Skip to content
Snippets Groups Projects
Commit 4dbd2e80 authored by Rostislav Vatolin [SLB]'s avatar Rostislav Vatolin [SLB]
Browse files

Add memory limits

parent 8aa45330
No related branches found
No related tags found
1 merge request!103Add memory limits
......@@ -15,4 +15,11 @@ image:
branch: #{ENVIRONMENT_NAME}#
tag: #{Build.SourceVersion}#
istioDnsHost: #{ISTIO_DNS_HOST}#
\ No newline at end of file
istioDnsHost: #{ISTIO_DNS_HOST}#
env: #{ENVIRONMENT_NAME}#
featureFlag:
resourceLimits:
enabledEnvs:
- demo
......@@ -34,6 +34,15 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 80
{{- if has .Values.env .Values.featureFlag.resourceLimits.enabledEnvs }}
resources:
requests:
cpu: "100m"
memory: "500Mi"
limits:
cpu: "1000m"
memory: "1Gi"
{{- end }}
readinessProbe:
httpGet:
path: /api/unit/_ah/readiness_check
......
......@@ -8,4 +8,11 @@ image:
tag: latest
pullPolicy: Always
istioDnsHost: ""
\ No newline at end of file
istioDnsHost: ""
env: demo
featureFlag:
resourceLimits:
enabledEnvs:
- demo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment