91 lines
2.2 KiB
YAML
91 lines
2.2 KiB
YAML
|
# deployment
|
||
|
---
|
||
|
apiVersion: platform.confluent.io/v1beta1
|
||
|
kind: Zookeeper
|
||
|
metadata:
|
||
|
name: zookeeper
|
||
|
namespace: basic
|
||
|
spec:
|
||
|
replicas: 3
|
||
|
configOverrides:
|
||
|
jvm:
|
||
|
- "-Xmx128m"
|
||
|
podTemplate:
|
||
|
affinity:
|
||
|
podAntiAffinity:
|
||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||
|
- labelSelector:
|
||
|
matchExpressions:
|
||
|
- key: app
|
||
|
operator: In
|
||
|
values:
|
||
|
- zookeeper
|
||
|
topologyKey: kubernetes.io/hostname
|
||
|
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
|
||
|
kind: Kafka
|
||
|
metadata:
|
||
|
name: kafka
|
||
|
namespace: basic
|
||
|
spec:
|
||
|
replicas: 3
|
||
|
configOverrides:
|
||
|
server:
|
||
|
- auto.create.topics.enable=true
|
||
|
- default.replication.factor=3
|
||
|
jvm:
|
||
|
- "-Xmx512m"
|
||
|
podTemplate:
|
||
|
affinity:
|
||
|
podAntiAffinity:
|
||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||
|
- labelSelector:
|
||
|
matchExpressions:
|
||
|
- key: app
|
||
|
operator: In
|
||
|
values:
|
||
|
- kafka
|
||
|
topologyKey: kubernetes.io/hostname
|
||
|
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.basic.svc.cluster.local:2181
|
||
|
---
|
||
|
apiVersion: platform.confluent.io/v1beta1
|
||
|
kind: SchemaRegistry
|
||
|
metadata:
|
||
|
name: schemaregistry
|
||
|
namespace: basic
|
||
|
spec:
|
||
|
replicas: 3
|
||
|
configOverrides:
|
||
|
jvm:
|
||
|
- "-Xmx128m"
|
||
|
podTemplate:
|
||
|
affinity:
|
||
|
podAntiAffinity:
|
||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||
|
- labelSelector:
|
||
|
matchExpressions:
|
||
|
- key: app
|
||
|
operator: In
|
||
|
values:
|
||
|
- schemaregistry
|
||
|
topologyKey: kubernetes.io/hostname
|
||
|
image:
|
||
|
application: confluentinc/cp-schema-registry:7.4.0
|
||
|
init: confluentinc/confluent-init-container:2.6.0
|