From 90835a743d407b5d6fbf73529c89330f01039c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Thu, 14 Sep 2023 16:54:42 +0200 Subject: [PATCH] feat(ai-navigator): set proper resource limits and requests (#1585) * fix: remove empty config map * feat(ai-navigator): set proper resource limits and requests I've ran 25 bot users which are constantly asking questions against the service on the daily and it was inside the limits with a good margin. It never went above 0.008 CPU usage and memory wasn't really much affected, it stayed <30MB observed in our Grafana Dashboard. * Closes D2IQ-99125 * chore: set limits == requests (cherry picked from commit d97ee740d2ac7c162f3d87fa068ed2122d88adfa) --- services/ai-navigator-app/0.1.0/ai-navigator-app.yaml | 7 +++++++ services/ai-navigator-app/0.1.0/defaults/cm.yaml | 8 -------- .../ai-navigator-app/0.1.0/defaults/kustomization.yaml | 4 ---- 3 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 services/ai-navigator-app/0.1.0/defaults/cm.yaml delete mode 100644 services/ai-navigator-app/0.1.0/defaults/kustomization.yaml diff --git a/services/ai-navigator-app/0.1.0/ai-navigator-app.yaml b/services/ai-navigator-app/0.1.0/ai-navigator-app.yaml index 46dcc2b79..405b604d6 100644 --- a/services/ai-navigator-app/0.1.0/ai-navigator-app.yaml +++ b/services/ai-navigator-app/0.1.0/ai-navigator-app.yaml @@ -81,6 +81,13 @@ spec: initialDelaySeconds: 60 timeoutSeconds: 30 failureThreshold: 10 + resources: + requests: + cpu: 100m + memory: 256Mi + limits: + cpu: 300m + memory: 256Mi securityContext: allowPrivilegeEscalation: false capabilities: diff --git a/services/ai-navigator-app/0.1.0/defaults/cm.yaml b/services/ai-navigator-app/0.1.0/defaults/cm.yaml deleted file mode 100644 index 07208bbab..000000000 --- a/services/ai-navigator-app/0.1.0/defaults/cm.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -data: - values.yaml: | - --- -kind: ConfigMap -metadata: - name: ai-navigation-app-0.1.0-d2iq-defaults - namespace: ${releaseNamespace} diff --git a/services/ai-navigator-app/0.1.0/defaults/kustomization.yaml b/services/ai-navigator-app/0.1.0/defaults/kustomization.yaml deleted file mode 100644 index 77c753a51..000000000 --- a/services/ai-navigator-app/0.1.0/defaults/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - cm.yaml