OKR/dev-upgrade/kafka/kafka-dev.yaml

111 lines
2.5 KiB
YAML
Raw Normal View History

2023-07-12 11:22:45 +08:00
---
apiVersion: platform.confluent.io/v1beta1
2023-07-12 16:33:54 +08:00
kind: Zookeeper
metadata:
name: zookeeper
spec:
replicas: 3
2023-07-26 22:35:13 +08:00
oneReplicaPerNode: true
2023-09-13 16:24:30 +08:00
externalAccess:
nodePort:
host: 10.2.0.14
nodePortOffset: 30031
2023-07-12 16:33:54 +08:00
configOverrides:
jvm:
- "-Xmx128m"
podTemplate:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- trainer
image:
application: confluentinc/cp-zookeeper:7.4.0
init: confluentinc/confluent-init-container:2.6.0
dataVolumeCapacity: 10Gi
logVolumeCapacity: 10Gi
storageClass:
name: local-kafka
---
apiVersion: platform.confluent.io/v1beta1
2023-07-12 11:22:45 +08:00
kind: Kafka
metadata:
name: kafka
spec:
replicas: 3
2023-07-26 22:35:13 +08:00
oneReplicaPerNode: true
2023-07-12 11:22:45 +08:00
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:
2023-07-12 12:51:30 +08:00
nodeAffinity:
2023-07-12 11:22:45 +08:00
requiredDuringSchedulingIgnoredDuringExecution:
2023-07-12 12:51:30 +08:00
nodeSelectorTerms:
- matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- trainer
2023-07-12 11:22:45 +08:00
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
2023-09-06 18:47:02 +08:00
listeners:
external:
externalAccess:
type: nodePort
nodePort:
host: 10.2.0.12
nodePortOffset: 30001
2023-07-12 16:33:54 +08:00
# dependencies:
# 多个kakfa集群复用zk
# zookeeper:
# endpoint: zookeeper.common.svc.cluster.local:2181
2023-07-12 11:22:45 +08:00
---
apiVersion: platform.confluent.io/v1beta1
kind: SchemaRegistry
metadata:
name: schemaregistry
spec:
replicas: 3
2023-07-26 22:35:13 +08:00
oneReplicaPerNode: true
2023-07-12 11:22:45 +08:00
configOverrides:
jvm:
- "-Xmx128m"
podTemplate:
affinity:
2023-07-12 12:51:30 +08:00
nodeAffinity:
2023-07-12 11:22:45 +08:00
requiredDuringSchedulingIgnoredDuringExecution:
2023-07-12 12:51:30 +08:00
nodeSelectorTerms:
- matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- trainer
2023-07-12 11:22:45 +08:00
image:
application: confluentinc/cp-schema-registry:7.4.0
init: confluentinc/confluent-init-container:2.6.0
2023-09-07 22:01:04 +08:00
externalAccess:
type: nodePort
nodePort:
host: 10.2.0.13
2023-09-07 22:05:38 +08:00
nodePortOffset: 30009