Skip to content

Commit 23858ff

Browse files
committed
Change default ref
1 parent 259b880 commit 23858ff

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ To link a BrokerListener to a *BrokerAuthentication* resource, specify the `auth
3030

3131
## Default BrokerAuthentication resource
3232

33-
Azure IoT Operations Preview deploys a default *BrokerAuthentication* resource named `default` linked with the *default* listener in the `azure-iot-operations` namespace. It's configured to only use Kubernetes Service Account Tokens (SATs) for authentication. To inspect it, run:
33+
Azure IoT Operations Preview deploys a default *BrokerAuthentication* resource named `authn` linked with the *default* listener named `listener` in the `azure-iot-operations` namespace. It's configured to only use Kubernetes Service Account Tokens (SATs) for authentication. To inspect it, run:
3434

3535
```bash
36-
kubectl get brokerauthentication default -n azure-iot-operations -o yaml
36+
kubectl get brokerauthentication authn -n azure-iot-operations -o yaml
3737
```
3838

3939
The output shows the default *BrokerAuthentication* resource, with metadata removed for brevity:
@@ -42,7 +42,7 @@ The output shows the default *BrokerAuthentication* resource, with metadata remo
4242
apiVersion: mqttbroker.iotoperations.azure.com/v1beta1
4343
kind: BrokerAuthentication
4444
metadata:
45-
name: default
45+
name: authn
4646
namespace: azure-iot-operations
4747
spec:
4848
authenticationMethods:
@@ -79,7 +79,7 @@ With multiple authentication methods, MQTT broker has a fallback mechanism. For
7979
apiVersion: mqttbroker.iotoperations.azure.com/v1beta1
8080
kind: BrokerAuthentication
8181
metadata:
82-
name: default
82+
name: authn
8383
namespace: azure-iot-operations
8484
spec:
8585
authenticationMethods:

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Each listener port can have its own authentication and authorization rules that
2626
2727
Listeners have the following characteristics:
2828

29-
- You can have up to three listeners. One listener per service type of `loadBalancer`, `clusterIp`, or `nodePort`. The default *BrokerListener* named *default* is service type `clusterIp`.
29+
- You can have up to three listeners. One listener per service type of `loadBalancer`, `clusterIp`, or `nodePort`. The default *BrokerListener* named *listener* is service type `clusterIp`.
3030
- Each listener supports multiple ports
3131
- BrokerAuthentication and BrokerAuthorization references are per port
3232
- TLS configuration is per port
@@ -59,7 +59,7 @@ To view or edit the listener:
5959
To view the default *BrokerListener* resource, use the following command:
6060

6161
```bash
62-
kubectl get brokerlistener default -n azure-iot-operations -o yaml
62+
kubectl get brokerlistener listener -n azure-iot-operations -o yaml
6363
```
6464

6565
The output should look similar to this, with most metadata removed for brevity:
@@ -68,14 +68,14 @@ The output should look similar to this, with most metadata removed for brevity:
6868
apiVersion: mqttbroker.iotoperations.azure.com/v1beta1
6969
kind: BrokerListener
7070
metadata:
71-
name: default
71+
name: listener
7272
namespace: azure-iot-operations
7373
spec:
7474
brokerRef: default
7575
serviceName: aio-broker
7676
serviceType: ClusterIp
7777
ports:
78-
- authenticationRef: default
78+
- authenticationRef: authn
7979
port: 18883
8080
protocol: Mqtt
8181
tls:
@@ -94,7 +94,7 @@ To learn more about the default BrokerAuthentication resource linked to this lis
9494
The default *BrokerListener* uses the service type *ClusterIp*. You can have only one listener per service type. If you want to add more ports to service type *ClusterIp*, you can update the default listener to add more ports. For example, you could add a new port 1883 with no TLS and authentication off with the following kubectl patch command:
9595
9696
```bash
97-
kubectl patch brokerlistener default -n azure-iot-operations --type='json' -p='[{"op": "add", "path": "/spec/ports/", "value": {"port": 1883, "protocol": "Mqtt"}}]'
97+
kubectl patch brokerlistener listener -n azure-iot-operations --type='json' -p='[{"op": "add", "path": "/spec/ports/", "value": {"port": 1883, "protocol": "Mqtt"}}]'
9898
```
9999
100100
---
@@ -146,7 +146,7 @@ spec:
146146
- port: 1883
147147
protocol: Mqtt
148148
- port: 18883
149-
authenticationRef: default
149+
authenticationRef: authn
150150
protocol: Mqtt
151151
tls:
152152
mode: Automatic

0 commit comments

Comments
 (0)