Deploy a Custom Kafka CDR Consumer Extension
All Kafka CDR Consumer extensions can use the same Helm chart. After you create an extension, you can use a Helm values file to manually deploy the image. Each extension you create can have its own values file.
Procedure
-
Prepare the Helm values file to specify the needed configurations. In the following example,
is the image name:mtx-tap3json-consumer
global: image: registry: name: harbor.matrixx-services.com image: name: "matrixx-kcc/mtx-tap3json-consumer" version: "5250" # Kafka CDR Consumer App configurations configuration: engine: host: "engine.host" port: 4060 consumer: kafka: topic: rerater_topic config: bootstrap.servers: kafka1:9092,kafka2:9092,kafka3:9092 group.id: "cg1" max.poll.records: 100 producer: kafka: topic: reject_topic config: bootstrap.servers: kafka1:9092,kafka2:9092,kafka3:9092
- Point the image name and version to the image built. Make sure your Kubernetes environment can pull the image from the registry.
- Point the engine host and port to the MATRIXX Engine address or TRA-LB address in case of a multiple domain deployment.
-
Deploy the Helm chart, for example:
helm install acme-json-kafka-consumer kafka-cdr-consumer-1.0.0.tgz -f acme_override.yaml
Note: The Helm chartkafka-cdr-consumer
is the same Helm chart for all Kafka CDR Consumer extensions. Replace the image name and version inside the values file. -
Send a message to the source Kafka topic to trigger
acme-json-kafka-consumer
to start processing.
What to do next
After you finish testing successfully, you can finish your new image (that is, remove the SNAPSHOT
from root.pom.xml) and rebuild your custom Kafka CDR Consumer extension for release.