OKR/tcs-upgrade/kafka/kafka.yaml

112 lines
2.6 KiB
YAML
Raw Normal View History

2023-06-01 19:28:28 +08:00
---
apiVersion: platform.confluent.io/v1beta1
kind: Zookeeper
metadata:
name: zookeeper
spec:
replicas: 3
2023-11-06 11:27:36 +08:00
oneReplicaPerNode: true
2023-06-01 19:28:28 +08:00
configOverrides:
jvm:
- "-Xmx128m"
podTemplate:
affinity:
2023-11-06 11:27:36 +08:00
nodeAffinity:
2023-06-01 19:28:28 +08:00
requiredDuringSchedulingIgnoredDuringExecution:
2023-11-06 11:27:36 +08:00
nodeSelectorTerms:
- matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- tcs
2023-06-01 19:28:28 +08:00
image:
application: confluentinc/cp-zookeeper:7.4.0
init: confluentinc/confluent-init-container:2.6.0
dataVolumeCapacity: 10Gi
logVolumeCapacity: 10Gi
storageClass:
2023-11-06 17:11:26 +08:00
name: tcs-kafka
2023-06-01 19:28:28 +08:00
---
apiVersion: platform.confluent.io/v1beta1
kind: Kafka
metadata:
name: kafka
spec:
replicas: 3
2023-11-06 11:27:36 +08:00
oneReplicaPerNode: true
2023-06-01 19:28:28 +08:00
configOverrides:
server:
- auto.create.topics.enable=true
- default.replication.factor=3
jvm:
- "-Xmx512m"
podTemplate:
2023-06-01 19:36:29 +08:00
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "4G"
cpu: "1"
2023-06-01 19:28:28 +08:00
affinity:
2023-11-06 11:27:36 +08:00
nodeAffinity:
2023-06-01 19:28:28 +08:00
requiredDuringSchedulingIgnoredDuringExecution:
2023-11-06 11:27:36 +08:00
nodeSelectorTerms:
- matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- tcs
2023-06-01 19:28:28 +08:00
image:
application: confluentinc/cp-server:7.4.0
init: confluentinc/confluent-init-container:2.6.0
dataVolumeCapacity: 20Gi
storageClass:
2023-11-06 17:11:26 +08:00
name: tcs-kafka
2023-06-01 19:28:28 +08:00
metricReporter:
enabled: true
2023-11-06 11:27:36 +08:00
listeners:
external:
2023-11-08 18:54:03 +08:00
authentication:
type: plain
2023-11-08 18:55:50 +08:00
jaasConfig:
2023-11-08 18:54:03 +08:00
secretRef: credential
2023-11-06 11:27:36 +08:00
externalAccess:
type: nodePort
nodePort:
2023-11-07 10:35:19 +08:00
host: kafka-tcs.beaconfireinc.com
2023-11-06 11:27:36 +08:00
nodePortOffset: 30001
# dependencies:
# 多个kakfa集群复用zk
# zookeeper:
# endpoint: zookeeper.common.svc.cluster.local:2181
2023-06-01 19:28:28 +08:00
---
apiVersion: platform.confluent.io/v1beta1
kind: SchemaRegistry
metadata:
name: schemaregistry
spec:
replicas: 3
2023-11-06 11:27:36 +08:00
oneReplicaPerNode: true
2023-06-01 19:28:28 +08:00
configOverrides:
jvm:
- "-Xmx128m"
podTemplate:
affinity:
2023-11-06 11:27:36 +08:00
nodeAffinity:
2023-06-01 19:28:28 +08:00
requiredDuringSchedulingIgnoredDuringExecution:
2023-11-06 11:27:36 +08:00
nodeSelectorTerms:
- matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- tcs
2023-06-01 19:28:28 +08:00
image:
application: confluentinc/cp-schema-registry:7.4.0
2023-09-07 22:01:04 +08:00
init: confluentinc/confluent-init-container:2.6.0
externalAccess:
type: nodePort
nodePort:
2023-11-07 11:09:40 +08:00
host: kafka-tcs.beaconfireinc.com
2023-11-07 10:35:19 +08:00
nodePortOffset: 30005