Skip to content

Commit 51ca450

Browse files
committed
Rename mq to broker
1 parent 8867826 commit 51ca450

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

articles/iot-operations/connect-to-cloud/tutorial-mqtt-bridge.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,16 +406,16 @@ spec:
406406
command: ["sh", "-c"]
407407
args: ["apk add mosquitto-clients mqttui && sleep infinity"]
408408
volumeMounts:
409-
- name: mq-sat
409+
- name: broker-sat
410410
mountPath: /var/run/secrets/tokens
411411
- name: trust-bundle
412412
mountPath: /var/run/certs
413413
volumes:
414-
- name: mq-sat
414+
- name: broker-sat
415415
projected:
416416
sources:
417417
- serviceAccountToken:
418-
path: mq-sat
418+
path: broker-sat
419419
audience: aio-internal # Must match audience in BrokerAuthentication
420420
expirationSeconds: 86400
421421
- name: trust-bundle
@@ -450,7 +450,7 @@ mosquitto_sub --host aio-broker --port 18883 \
450450
-t "tutorial/#" \
451451
--debug --cafile /var/run/certs/ca.crt \
452452
-D CONNECT authentication-method 'K8S-SAT' \
453-
-D CONNECT authentication-data $(cat /var/run/secrets/tokens/mq-sat)
453+
-D CONNECT authentication-data $(cat /var/run/secrets/tokens/broker-sat)
454454
```
455455

456456
Leave the command running and open a new terminal window.
@@ -472,7 +472,7 @@ mosquitto_pub -h aio-broker -p 18883 \
472472
--repeat 5 --repeat-delay 1 -d \
473473
--debug --cafile /var/run/certs/ca.crt \
474474
-D CONNECT authentication-method 'K8S-SAT' \
475-
-D CONNECT authentication-data $(cat /var/run/secrets/tokens/mq-sat)
475+
-D CONNECT authentication-data $(cat /var/run/secrets/tokens/broker-sat)
476476
```
477477

478478
## View the messages in the subscriber

articles/iot-operations/discover-manage-assets/concept-opcua-message-format.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The connector for OPC UA publishes messages from OPC UA servers to the MQTT brok
2020
The payload of an OPC UA message is a JSON object that contains the telemetry data from the OPC UA server. The following example shows the payload of a message from the sample thermostat asset used in the quickstarts. Use the following command to subscribe to messages in the `azure-iot-operations/data` topic:
2121

2222
```console
23-
mosquitto_sub --host aio-broker --port 18883 --topic "azure-iot-operations/data/#" -v --debug --cafile /var/run/certs/ca.crt -D CONNECT authentication-method 'K8S-SAT' -D CONNECT authentication-data $(cat /var/run/secrets/tokens/mq-sat)
23+
mosquitto_sub --host aio-broker --port 18883 --topic "azure-iot-operations/data/#" -v --debug --cafile /var/run/certs/ca.crt -D CONNECT authentication-method 'K8S-SAT' -D CONNECT authentication-data $(cat /var/run/secrets/tokens/broker-sat)
2424
```
2525

2626
The output from the previous command looks like the following example:
@@ -43,7 +43,7 @@ Client $server-generated/05a22b94-c5a2-4666-9c62-837431ca6f7e received PUBLISH (
4343
The headers in the messages published by the connector for OPC UA are based on the [CloudEvents specification for OPC UA](https://github.com/cloudevents/spec/blob/main/cloudevents/extensions/opcua.md). The headers from an OPC UA message become user properties in a message published to the MQTT broker. The following example shows the user properties of a message from the sample thermostat asset used in the quickstarts. Use the following command to subscribe to messages in the `azure-iot-operations/data` topic:
4444

4545
```console
46-
mosquitto_sub --host aio-broker --port 18883 --topic "azure-iot-operations/data/#" -V mqttv5 -F %P --cafile /var/run/certs/ca.crt -D CONNECT authentication-method 'K8S-SAT' -D CONNECT authentication-data $(cat /var/run/secrets/tokens/mq-sat)
46+
mosquitto_sub --host aio-broker --port 18883 --topic "azure-iot-operations/data/#" -V mqttv5 -F %P --cafile /var/run/certs/ca.crt -D CONNECT authentication-method 'K8S-SAT' -D CONNECT authentication-data $(cat /var/run/secrets/tokens/broker-sat)
4747
```
4848

4949
The output from the previous command looks like the following example:

articles/iot-operations/manage-mqtt-broker/howto-configure-authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ kubectl exec --stdin --tty mqtt-client -n azure-iot-operations -- sh
310310
Inside the pod's shell, run the following command to publish a message to the broker:
311311

312312
```bash
313-
mosquitto_pub --host aio-broker --port 18883 --message "hello" --topic "world" --debug --cafile /var/run/certs/ca.crt -D CONNECT authentication-method 'K8S-SAT' -D CONNECT authentication-data $(cat /var/run/secrets/tokens/mq-sat)
313+
mosquitto_pub --host aio-broker --port 18883 --message "hello" --topic "world" --debug --cafile /var/run/certs/ca.crt -D CONNECT authentication-method 'K8S-SAT' -D CONNECT authentication-data $(cat /var/run/secrets/tokens/broker-sat)
314314
```
315315

316316
The output should look similar to the following:
@@ -322,7 +322,7 @@ Client (null) sending PUBLISH (d0, q0, r0, m1, 'world', ... (5 bytes))
322322
Client (null) sending DISCONNECT
323323
```
324324

325-
The mosquitto client uses the service account token mounted at `/var/run/secrets/tokens/mq-sat` to authenticate with the broker. The token is valid for 24 hours. The client also uses the default root CA cert mounted at `/var/run/certs/ca.crt` to verify the broker's TLS certificate chain.
325+
The mosquitto client uses the service account token mounted at `/var/run/secrets/tokens/broker-sat` to authenticate with the broker. The token is valid for 24 hours. The client also uses the default root CA cert mounted at `/var/run/certs/ca.crt` to verify the broker's TLS certificate chain.
326326

327327
### Refresh service account tokens
328328

articles/iot-operations/manage-mqtt-broker/howto-test-connection.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ The first option is to connect from within the cluster. This option uses the def
6464
command: ["sh", "-c"]
6565
args: ["apk add mosquitto-clients mqttui && sleep infinity"]
6666
volumeMounts:
67-
- name: mq-sat
67+
- name: broker-sat
6868
mountPath: /var/run/secrets/tokens
6969
- name: trust-bundle
7070
mountPath: /var/run/certs
7171
volumes:
72-
- name: mq-sat
72+
- name: broker-sat
7373
projected:
7474
sources:
7575
- serviceAccountToken:
76-
path: mq-sat
76+
path: broker-sat
7777
audience: aio-internal # Must match audience in BrokerAuthentication
7878
expirationSeconds: 86400
7979
- name: trust-bundle
@@ -94,7 +94,7 @@ The first option is to connect from within the cluster. This option uses the def
9494
1. Inside the pod's shell, run the following command to publish a message to the broker:
9595

9696
```console
97-
mosquitto_pub --host aio-broker --port 18883 --message "hello" --topic "world" --debug --cafile /var/run/certs/ca.crt -D CONNECT authentication-method 'K8S-SAT' -D CONNECT authentication-data $(cat /var/run/secrets/tokens/mq-sat)
97+
mosquitto_pub --host aio-broker --port 18883 --message "hello" --topic "world" --debug --cafile /var/run/certs/ca.crt -D CONNECT authentication-method 'K8S-SAT' -D CONNECT authentication-data $(cat /var/run/secrets/tokens/broker-sat)
9898
```
9999

100100
The output should look similar to the following:
@@ -106,12 +106,12 @@ The first option is to connect from within the cluster. This option uses the def
106106
Client (null) sending DISCONNECT
107107
```
108108

109-
The mosquitto client uses the service account token mounted at `/var/run/secrets/tokens/mq-sat` to authenticate with the broker. The token is valid for 24 hours. The client also uses the default root CA cert mounted at `/var/run/certs/ca.crt` to verify the broker's TLS certificate chain.
109+
The mosquitto client uses the service account token mounted at `/var/run/secrets/tokens/broker-sat` to authenticate with the broker. The token is valid for 24 hours. The client also uses the default root CA cert mounted at `/var/run/certs/ca.crt` to verify the broker's TLS certificate chain.
110110

111111
1. To subscribe to the topic, run the following command:
112112

113113
```console
114-
mosquitto_sub --host aio-broker --port 18883 --topic "world" --debug --cafile /var/run/certs/ca.crt -D CONNECT authentication-method 'K8S-SAT' -D CONNECT authentication-data $(cat /var/run/secrets/tokens/mq-sat)
114+
mosquitto_sub --host aio-broker --port 18883 --topic "world" --debug --cafile /var/run/certs/ca.crt -D CONNECT authentication-method 'K8S-SAT' -D CONNECT authentication-data $(cat /var/run/secrets/tokens/broker-sat)
115115
```
116116

117117
The output should look similar to the following:

0 commit comments

Comments
 (0)