Skip to content
Snippets Groups Projects
Commit 451b2552 authored by Andrei Skorkin [EPAM / GCP]'s avatar Andrei Skorkin [EPAM / GCP]
Browse files

add global variable limitsEnabled

parent 303c280d
No related branches found
No related tags found
1 merge request!409Add global variable limitsEnabled (GONRG-7266)
Pipeline #194151 failed
......@@ -99,6 +99,7 @@ First you need to set variables in **values.yaml** file using any code editor. S
**global.domain** | your domain | string | - | yes
**global.useHttps** | defines whether to use HTTPS instead of HTTP for external minio s3 endpoint connection | boolean | true | yes
**global.onPremEnabled** | whether on-prem is enabled | boolean | false | yes
**global.limitsEnabled** | whether CPU and memory limits are enabled | boolean | true | yes
### Configmap variables
......@@ -124,8 +125,8 @@ First you need to set variables in **values.yaml** file using any code editor. S
|------|-------------|------|---------|---------|
**data.requestsCpu** | amount of requests CPU | string | 10m | yes
**data.requestsMemory** | amount of requests memory | string | 400Mi | yes
**data.limitsCpu** | CPU limit | string | 500m | yes
**data.imitsMemory** | memory limit | string | 1G | yes
**data.limitsCpu** | CPU limit | string | 500m | only if `global.limitsEnabled` is true
**data.limitsMemory** | memory limit | string | 1G | only if `global.limitsEnabled` is true
**data.serviceAccountName** | name of your service account | string | partition | yes
**data.image** | path to the image in a registry | string | - | yes
**data.imagePullPolicy** | when to pull the image | string | IfNotPresent | yes
......
......@@ -40,7 +40,9 @@ spec:
requests:
cpu: {{ .Values.data.requestsCpu | quote }}
memory: {{ .Values.data.requestsMemory | quote }}
{{- if .Values.global.limitsEnabled }}
limits:
cpu: {{ .Values.data.limitsCpu | quote }}
memory: {{ .Values.data.limitsMemory | quote }}
{{- end }}
serviceAccountName: {{ .Values.data.serviceAccountName | quote }}
......@@ -2,6 +2,7 @@ global:
domain: ""
useHttps: true
onPremEnabled: false
limitsEnabled: true
data:
# configmaps
......
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