From d59e35d5f38fcca34128a92ce82ff0ee37b79cd7 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Thu, 1 Jun 2023 19:36:29 +0800 Subject: [PATCH] add cpu and mem limit --- trainer-upgrade/kafka/kafka.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/trainer-upgrade/kafka/kafka.yaml b/trainer-upgrade/kafka/kafka.yaml index 6eeffda..d57b760 100644 --- a/trainer-upgrade/kafka/kafka.yaml +++ b/trainer-upgrade/kafka/kafka.yaml @@ -1,4 +1,3 @@ -# deployment --- apiVersion: platform.confluent.io/v1beta1 kind: Zookeeper @@ -43,6 +42,13 @@ spec: jvm: - "-Xmx512m" podTemplate: + resources: + requests: + memory: "256Mi" + cpu: "100m" + limits: + memory: "4G" + cpu: "1" affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: