You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-operations/manage-mqtt-broker/howto-test-connection.md
+12-44Lines changed: 12 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,54 +37,22 @@ Before you begin, [install or configure IoT Operations](../get-started-end-to-en
37
37
38
38
The first option is to connect from within the cluster. This option uses the default configuration and requires no extra updates. The following examples show how to connect from within the cluster using plain Alpine Linux and a commonly used MQTT client, using the service account and default root CA certificate.
39
39
40
-
First, create a file named `client.yaml`with the following configuration:
40
+
Download `client.yaml`deployment from the GitHub sample repository.
41
41
42
-
```yaml
43
-
apiVersion: v1
44
-
kind: ServiceAccount
45
-
metadata:
46
-
name: mqtt-client
47
-
namespace: azure-iot-operations
48
-
---
49
-
apiVersion: v1
50
-
kind: Pod
51
-
metadata:
52
-
name: mqtt-client
53
-
# Namespace must match MQTT broker BrokerListener's namespace
54
-
# Otherwise use the long hostname: aio-broker.azure-iot-operations.svc.cluster.local
55
-
namespace: azure-iot-operations
56
-
spec:
57
-
# Use the "mqtt-client" service account created from above
58
-
# Otherwise create it with `kubectl create serviceaccount mqtt-client -n azure-iot-operations`
0 commit comments