diff --git a/devops/gc/deploy/README.md b/devops/gc/deploy/README.md index 5f1f39c1a8e3deb5ed5eeb33573ec3eed3465523..7ac76adb4e6d6b71117c11aa7261d60cb1e1fc55 100644 --- a/devops/gc/deploy/README.md +++ b/devops/gc/deploy/README.md @@ -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.dataBootstrapEnabled** | whether storage bootstrap is enabled | boolean | false | yes +**global.limitsEnabled** | whether CPU and memory limits are enabled | boolean | true | yes ### Configmap variables @@ -60,8 +61,8 @@ First you need to set variables in **values.yaml** file using any code editor. S |------|-------------|------|---------|---------| **data.requestsCpu** | amount of requested CPU | string | `10m` | yes **data.requestsMemory** | amount of requested memory| string | `650Mi` | yes -**data.limitsCpu** | CPU limit | string | `1` | yes -**data.limitsMemory** | memory limit | string | `3G` | yes +**data.limitsCpu** | CPU limit | string | `1` | only if `global.limitsEnabled` is true +**data.limitsMemory** | memory limit | string | `3G` | only if `global.limitsEnabled` is true **data.image** | path to the image in a registry | string | - | yes **data.imagePullPolicy** | when to pull the image | string | `IfNotPresent` | yes **data.serviceAccountName** | name of kubernetes service account | string | `storage` | yes diff --git a/devops/gc/deploy/templates/deployment.yaml b/devops/gc/deploy/templates/deployment.yaml index 2f746f6ca11638130679d64378a1d0f24876bafe..087defddb7bb2395785d7e3a4989575795640c89 100644 --- a/devops/gc/deploy/templates/deployment.yaml +++ b/devops/gc/deploy/templates/deployment.yaml @@ -58,7 +58,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 }} diff --git a/devops/gc/deploy/values.yaml b/devops/gc/deploy/values.yaml index 3100aa5ff4c26d84339730dff7e6169b2d9a23c7..8dd1dee6e13576488b75dc8a126fdab934fb06ed 100644 --- a/devops/gc/deploy/values.yaml +++ b/devops/gc/deploy/values.yaml @@ -6,6 +6,7 @@ global: domain: "" onPremEnabled: false dataBootstrapEnabled: false + limitsEnabled: true data: # configmaps