From 4dd14efb9cc86ce81600d57322f561cb01a20425 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Wed, 12 Jul 2023 15:17:05 +0800 Subject: [PATCH] update kafka --- dev-upgrade/kafka/kafka-release.yaml | 82 ++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 dev-upgrade/kafka/kafka-release.yaml diff --git a/dev-upgrade/kafka/kafka-release.yaml b/dev-upgrade/kafka/kafka-release.yaml new file mode 100644 index 0000000..87e0673 --- /dev/null +++ b/dev-upgrade/kafka/kafka-release.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: platform.confluent.io/v1beta1 +kind: Kafka +metadata: + name: kafka +spec: + replicas: 3 + configOverrides: + server: + - auto.create.topics.enable=true + - default.replication.factor=3 + jvm: + - "-Xmx512m" + podTemplate: + resources: + requests: + memory: "256Mi" + cpu: "100m" + limits: + memory: "4G" + cpu: "1" + affinity: + # podAntiAffinity: + # requiredDuringSchedulingIgnoredDuringExecution: + # - labelSelector: + # matchExpressions: + # - key: app + # operator: In + # values: + # - kafka + # topologyKey: kubernetes.io/hostname + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - trainer + image: + application: confluentinc/cp-server:7.4.0 + init: confluentinc/confluent-init-container:2.6.0 + dataVolumeCapacity: 20Gi + storageClass: + name: local-kafka + metricReporter: + enabled: true + dependencies: + zookeeper: + endpoint: zookeeper-0.zookeeper.common.svc:2181/release,zookeeper-1.zookeeper.common.svc:2181/release,zookeeper-2.zookeeper.common.svc:2181/release +--- +apiVersion: platform.confluent.io/v1beta1 +kind: SchemaRegistry +metadata: + name: schemaregistry +spec: + replicas: 3 + configOverrides: + jvm: + - "-Xmx128m" + podTemplate: + affinity: + # podAntiAffinity: + # requiredDuringSchedulingIgnoredDuringExecution: + # - labelSelector: + # matchExpressions: + # - key: app + # operator: In + # values: + # - schemaregistry + # topologyKey: kubernetes.io/hostname + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - trainer + image: + application: confluentinc/cp-schema-registry:7.4.0 + init: confluentinc/confluent-init-container:2.6.0