From 878c9e421e11b87b37c81bf586153082a60ef3a0 Mon Sep 17 00:00:00 2001 From: Yurii Pelykh <yurii_pelykh@epam.com> Date: Wed, 15 Feb 2023 12:34:50 +0200 Subject: [PATCH] GONRG-6470: Update requests according to vpa --- devops/gc/deploy/README.md | 8 ++++---- devops/gc/deploy/templates/deploy-redis.yaml | 6 ++++-- devops/gc/deploy/values.yaml | 8 ++++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/devops/gc/deploy/README.md b/devops/gc/deploy/README.md index ad23470a1..95bbd43e4 100644 --- a/devops/gc/deploy/README.md +++ b/devops/gc/deploy/README.md @@ -43,8 +43,8 @@ First you need to set variables in **values.yaml** file using any code editor. S | Name | Description | Type | Default |Required | |------|-------------|------|---------|---------| -**data.requestsCpu** | amount of requested CPU | string | `0.1` | yes -**data.requestsMemory** | amount of requested memory| string | `256M` | yes +**data.requestsCpu** | amount of requested CPU | string | `580m` | yes +**data.requestsMemory** | amount of requested memory| string | `1.05G` | yes **data.limitsCpu** | CPU limit | string | `1` | yes **data.limitsMemory** | memory limit | string | `1.5G` | yes **data.serviceAccountName** | name of your service account | string | `notification` | yes @@ -69,9 +69,9 @@ First you need to set variables in **values.yaml** file using any code editor. S | Name | Description | Type | Default |Required | |------|-------------|------|---------|---------| -**istio.proxyCPU** | CPU request for Envoy sidecars | string | `50m` | yes +**istio.proxyCPU** | CPU request for Envoy sidecars | string | `310m` | yes **istio.proxyCPULimit** | CPU limit for Envoy sidecars | string | `500m` | yes -**istio.proxyMemory** | memory request for Envoy sidecars | string | `64Mi` | yes +**istio.proxyMemory** | memory request for Envoy sidecars | string | `100Mi` | yes **istio.proxyMemoryLimit** | memory limit for Envoy sidecars | string | `512Mi` | yes ### Install the helm chart diff --git a/devops/gc/deploy/templates/deploy-redis.yaml b/devops/gc/deploy/templates/deploy-redis.yaml index 47d2d2ca8..de4905ae2 100644 --- a/devops/gc/deploy/templates/deploy-redis.yaml +++ b/devops/gc/deploy/templates/deploy-redis.yaml @@ -14,7 +14,8 @@ spec: labels: app: {{ printf "redis-%s" .Values.conf.appName | quote }} annotations: - sidecar.istio.io/proxyCPU: 30m + sidecar.istio.io/proxyCPU: 10m + sidecar.istio.io/proxyMemory: 100Mi spec: containers: - args: @@ -31,5 +32,6 @@ spec: protocol: TCP resources: requests: - memory: 100Mi + cpu: 10m + memory: 50Mi {{ end }} diff --git a/devops/gc/deploy/values.yaml b/devops/gc/deploy/values.yaml index 7a870efb6..f4bd467c1 100644 --- a/devops/gc/deploy/values.yaml +++ b/devops/gc/deploy/values.yaml @@ -10,8 +10,8 @@ data: redisNotificationPort: 6379 redisImage: "docker.io/library/redis:7" #Deployments - requestsCpu: "0.1" - requestsMemory: "256M" + requestsCpu: "580m" + requestsMemory: "1.05G" limitsCpu: "1" limitsMemory: "1.5G" serviceAccountName: "notification" @@ -29,7 +29,7 @@ conf: redisSSL: false istio: - proxyCPU: "50m" + proxyCPU: "310m" proxyCPULimit: "500m" - proxyMemory: "64Mi" + proxyMemory: "100Mi" proxyMemoryLimit: "512Mi" -- GitLab