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: ...@@ -15,4 +15,11 @@ image:
branch: #{ENVIRONMENT_NAME}# branch: #{ENVIRONMENT_NAME}#
tag: #{Build.SourceVersion}# tag: #{Build.SourceVersion}#
istioDnsHost: #{ISTIO_DNS_HOST}# istioDnsHost: #{ISTIO_DNS_HOST}#
\ No newline at end of file
env: #{ENVIRONMENT_NAME}#
featureFlag:
resourceLimits:
enabledEnvs:
- demo
...@@ -34,6 +34,15 @@ spec: ...@@ -34,6 +34,15 @@ spec:
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 80 - containerPort: 80
{{- if has .Values.env .Values.featureFlag.resourceLimits.enabledEnvs }}
resources:
requests:
cpu: "100m"
memory: "500Mi"
limits:
cpu: "1000m"
memory: "1Gi"
{{- end }}
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /api/unit/_ah/readiness_check path: /api/unit/_ah/readiness_check
......
...@@ -8,4 +8,11 @@ image: ...@@ -8,4 +8,11 @@ image:
tag: latest tag: latest
pullPolicy: Always pullPolicy: Always
istioDnsHost: "" istioDnsHost: ""
\ No newline at end of file
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