From a2519a54b03b5b295403827ddb23a5c237f93ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ga=C3=A1l?= Date: Wed, 9 Oct 2024 17:14:38 +0200 Subject: [PATCH 1/3] feat(kafka): add exporter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: George Gaál --- packages/apps/kafka/Chart.yaml | 2 +- packages/apps/kafka/templates/kafka.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/apps/kafka/Chart.yaml b/packages/apps/kafka/Chart.yaml index fee99f245..ef5ef5fa6 100644 --- a/packages/apps/kafka/Chart.yaml +++ b/packages/apps/kafka/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.0 +version: 0.3.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/packages/apps/kafka/templates/kafka.yaml b/packages/apps/kafka/templates/kafka.yaml index 9f380b9b1..740b15110 100644 --- a/packages/apps/kafka/templates/kafka.yaml +++ b/packages/apps/kafka/templates/kafka.yaml @@ -76,3 +76,6 @@ spec: metadata: labels: policy.cozystack.io/allow-to-apiserver: "true" + kafkaExporter: + groupRegex: ".*" + topicRegex: ".*" \ No newline at end of file From 63462f0a866c30114225602f6dce1ec8598daaae Mon Sep 17 00:00:00 2001 From: Marian Koreniuk Date: Wed, 9 Oct 2024 17:28:34 +0200 Subject: [PATCH 2/3] add CPU and memory resources to reserve for kafkaExporter --- packages/apps/kafka/templates/kafka.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/apps/kafka/templates/kafka.yaml b/packages/apps/kafka/templates/kafka.yaml index 740b15110..a65faafd8 100644 --- a/packages/apps/kafka/templates/kafka.yaml +++ b/packages/apps/kafka/templates/kafka.yaml @@ -78,4 +78,11 @@ spec: policy.cozystack.io/allow-to-apiserver: "true" kafkaExporter: groupRegex: ".*" - topicRegex: ".*" \ No newline at end of file + topicRegex: ".*" + resources: (4) + requests: + cpu: 200m + memory: 64Mi + limits: + cpu: 500m + memory: 128Mi From 9e294019b0e9486b0263b346e970708489b0a928 Mon Sep 17 00:00:00 2001 From: Marian Koreniuk Date: Wed, 9 Oct 2024 17:29:03 +0200 Subject: [PATCH 3/3] fix --- packages/apps/kafka/templates/kafka.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/apps/kafka/templates/kafka.yaml b/packages/apps/kafka/templates/kafka.yaml index a65faafd8..96515212b 100644 --- a/packages/apps/kafka/templates/kafka.yaml +++ b/packages/apps/kafka/templates/kafka.yaml @@ -79,7 +79,7 @@ spec: kafkaExporter: groupRegex: ".*" topicRegex: ".*" - resources: (4) + resources: requests: cpu: 200m memory: 64Mi