package
1.8.1
Repository: https://github.com/kubemq-io/kubemq-targets.git
Documentation: pkg.go.dev

# README

Kubemq Command Source

Kubemq Command source provides rpc command subscriber for processing source commands.

Prerequisites

The following are required to run command source connector:

  • kubemq cluster
  • kubemq-targets deployment

Configuration

Command source connector configuration properties:

Properties KeyRequiredDescriptionExample
addressyeskubemq server address (gRPC interface)kubemq-cluster:50000
client_idnoset client id"client_id"
auth_tokennoset authentication tokenjwt token
channelyesset channel to subscribe
sourcesnoset how many command sources to subscribe"1"
groupnoset subscriber group
auto_reconnectnoset auto reconnect on lost connection"false", "true"
reconnect_interval_secondsnoset reconnection seconds"5"
max_reconnectsnoset how many times to reconnect"0"

Example:

bindings:
  - name: kubemq-command-elastic-search
    source:
      kind: kubemq.command
      name: kubemq-command
      properties:
        address: "kubemq-cluster:50000"
        client_id: "kubemq-command-elastic-search-connector"
        auth_token: ""
        channel: "command.elastic-search"
        group:   ""
        auto_reconnect: "true"
        sources: "1"
        reconnect_interval_seconds: "1"
        max_reconnects: "0"
    target:
      kind: stores.elastic-search
      name: target-elastic-search
      properties:
        urls: "http://localhost:9200"
        username: "admin"
        password: "password"
        sniff: "false"