add cpu and mem limit

main
ycz008 2023-06-01 19:36:29 +08:00
parent d1c1239840
commit d59e35d5f3
1 changed files with 7 additions and 1 deletions

View File

@ -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: