Skip to content

Commit

Permalink
add docs for how to configure maestro server without MQTT shared subs…
Browse files Browse the repository at this point in the history
…criptions (#87)

Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
skeeey authored May 8, 2024
1 parent 435715c commit 2386c56
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,31 @@ $ oc get pod -n default
NAME READY STATUS RESTARTS AGE
nginx-5d6b548959-829c7 1/1 Running 0 70s
```

### Make a new Kind
## Make a new Kind

1. Add to openapi.yaml
2. Generate the new structs/clients (`make generate`)
2. Generate the new structs/clients (`make generate`)

## Configure maestro server

### MQTT Configuration

Using the `--mqtt-config-file` to specify the MQTT configuration file for maestro server, the format of the configuration file can be yaml or json, it contains the following configurations

```yaml
brokerHost: <MQTT broker host, e.g. 127.0.0.1:1883>
username: <the username for MQTT broker, if required by username and password authentication>
password: <the password for MQTT broker, if required by username and password authentication>
caFile: <the CA of the MQTT broker, if required by mTLS authentication>
clientCertFile: <the cert of the MQTT client, if required by mTLS authentication>
clientKeyFile: <the cert key of the MQTT client, if required by mTLS authentication>
topics:
sourceEvents: sources/maestro/consumers/+/sourceevents
agentEvents: <the topic for agent events>
```
For `topics.agentEvents`

- If the MQTT broker supports the [shared subscriptions](
https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901250), the topic needs to be set to `$share/statussubscribers/sources/maestro/consumers/+/agentevents`
- If the MQTT broker does not support the shared subscriptions, the topic needs to be set to `sources/maestro/consumers/+/agentevents` and set the maestro server flag `--subscription-type` to `broadcast`

0 comments on commit 2386c56

Please sign in to comment.