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

add global variable limitsEnabled

parent 0e59f0f7
No related branches found
No related tags found
2 merge requests!537Draft: Update version of default branch to 0.22.0-SNAPSHOT,!524Add global variable limitsEnabled (GONRG-7266)
Pipeline #194085 failed
......@@ -32,6 +32,7 @@ You need to set variables in **values.yaml** file using any code editor. Some of
|------|-------------|------|---------|---------|
**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
......@@ -55,8 +56,8 @@ You need to set variables in **values.yaml** file using any code editor. Some of
|------|-------------|------|---------|----------|
**data.requestsCpu** | amount of requested CPU | string | `20m` | yes
**data.requestsMemory** | amount of requested memory| string | `550Mi` | yes
**data.limitsCpu** | CPU limit | string | `1` | yes
**data.limitsMemory** | memory limit | string | `1G` | yes
**data.limitsCpu** | CPU limit | string | `1` | 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 | `search` | yes
**data.imagePullPolicy** | when to pull image | string | `IfNotPresent` | yes
**data.image** | service image | string | - | yes
......
......@@ -50,7 +50,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 }}
global:
domain: ""
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