From 1b346fe03e36305cccd111077d6de639a93025e7 Mon Sep 17 00:00:00 2001 From: Hugo Tiburtino <45924645+hugotiburtino@users.noreply.github.com> Date: Thu, 8 Aug 2024 11:35:17 +0200 Subject: [PATCH] feat(editor-lti-tool): add resources config --- modules/editor-as-lti-tool/main.tf | 10 ++++++++++ modules/editor-as-lti-tool/values.yaml | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/modules/editor-as-lti-tool/main.tf b/modules/editor-as-lti-tool/main.tf index f989f3a..49b2d5b 100644 --- a/modules/editor-as-lti-tool/main.tf +++ b/modules/editor-as-lti-tool/main.tf @@ -116,6 +116,16 @@ resource "kubernetes_deployment" "editor_as_lti_tool" { name = "SERLO_EDITOR_TESTING_SECRET" value = var.serlo_editor_testing_secret } + resources { + requests = { + cpu = "20m" + memory = "200Mi" + } + limits = { + cpu = "50m" + memory = "350Mi" + } + } } } } diff --git a/modules/editor-as-lti-tool/values.yaml b/modules/editor-as-lti-tool/values.yaml index 57e4780..4dffd1c 100644 --- a/modules/editor-as-lti-tool/values.yaml +++ b/modules/editor-as-lti-tool/values.yaml @@ -5,3 +5,10 @@ global: storageClass: standard auth: rootPassword: ${mongodb_root_password} +resources: + requests: + cpu: 30m + memory: 300Mi + limits: + cpu: 50m + memory: 500Mi