Skip to content
Snippets Groups Projects
Commit 46a9e16c authored by Mikhail Piatliou (EPAM)'s avatar Mikhail Piatliou (EPAM)
Browse files

Merge branch 'GONRG-7266_Use_global_vars_for_limits' into 'master'

Add global variable limitsEnabled (GONRG-7266)

See merge request !362
parents 22c26c27 3fd7396c
No related branches found
No related tags found
1 merge request!362Add global variable limitsEnabled (GONRG-7266)
Pipeline #195865 failed
......@@ -33,6 +33,7 @@ First you need to set variables in **values.yaml** file using any code editor. S
|------|-------------|------|---------|---------|
**global.domain** | your domain for the external endpoint, ex `example.com` | string | - | 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
......@@ -57,8 +58,8 @@ First you need to set variables in **values.yaml** file using any code editor. S
**data.image** | your image name | string | - | yes
**data.requestsCpu** | amount of requests CPU | string | 10m | yes
**data.requestsMemory** | amount of requests memory| string | 450Mi | yes
**data.limitsCpu** | CPU limit | string | 1.5 | yes
**data.limitsMemory** | memory limit | string | 1G | yes
**data.limitsCpu** | CPU limit | string | 1.5 | 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 | register | yes
**data.imagePullPolicy** | when to pull image | string | IfNotPresent | yes
......
......@@ -47,7 +47,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 }}
......@@ -5,6 +5,7 @@
global:
domain: ""
onPremEnabled: false
limitsEnabled: true
data:
#Configmap
......
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