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

  1. Prepare the Helm values file to specify the needed configurations. In the following example, mtx-tap3json-consumer is the image name:
    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
  2. Point the image name and version to the image built. Make sure your Kubernetes environment can pull the image from the registry.
  3. Point the engine host and port to the MATRIXX Engine address or TRA-LB address in case of a multiple domain deployment.
  4. 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 chart kafka-cdr-consumer is the same Helm chart for all Kafka CDR Consumer extensions. Replace the image name and version inside the values file.
  5. 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.