Skip to content

Commit 3cdbe36

Browse files
Merge pull request #260599 from EthanChangAED/main
Update kubectl commands
2 parents 31445f6 + fb8b954 commit 3cdbe36

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

articles/iot-operations/manage-layered-network/howto-configure-l4-cluster-layered-network.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Once your Kubernetes cluster is Arc-enabled, you can deploy the Layered Network
186186
1. Use the *kubectl* command to verify the Layered Network Management operator is running.
187187

188188
```bash
189-
kubectl get pods
189+
kubectl get pods -n azure-iot-operations
190190
```
191191

192192
```output
@@ -272,7 +272,7 @@ Create the Layered Network Management custom resource.
272272
1. View the Layered Network Management Kubernetes service:
273273

274274
```bash
275-
kubectl get services
275+
kubectl get services -n azure-iot-operations
276276
```
277277

278278
```output

articles/iot-operations/manage-layered-network/howto-configure-layered-network.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ While the DNS setup can be achieved many different ways, this example uses an ex
9494
After the level 4 cluster and Layered Network Management are ready, perform the following steps.
9595
1. Confirm the IP address of Layered Network Management service with the following command:
9696
```bash
97-
kubectl get services
97+
kubectl get services -n azure-iot-operations
9898
```
9999
The output should look like the following. The IP address of the service is `20.81.111.118`.
100100

@@ -106,7 +106,7 @@ After the level 4 cluster and Layered Network Management are ready, perform the
106106
1. View the config maps with following command:
107107

108108
```bash
109-
kubectl get cm
109+
kubectl get cm -n azure-iot-operations
110110
```
111111

112112
The output should look like the following example:
@@ -124,7 +124,7 @@ After the level 4 cluster and Layered Network Management are ready, perform the
124124
export PARENT_IP_ADDR="20.81.111.118"
125125
126126
# run the script to generate a config map yaml
127-
kubectl get cm aio-lnm-level4-client-config -o yaml | yq eval '.metadata = {"name": "coredns-custom", "namespace": "kube-system"}' -| sed 's/PARENT_IP/'"$PARENT_IP_ADDR"'/' > configmap-custom-level4.yaml
127+
kubectl get cm aio-lnm-level4-client-config -n azure-iot-operations -o yaml | yq eval '.metadata = {"name": "coredns-custom", "namespace": "kube-system"}' -| sed 's/PARENT_IP/'"$PARENT_IP_ADDR"'/' > configmap-custom-level4.yaml
128128
```
129129

130130
This step creates a file named `configmap-custom-level4.yaml`

articles/iot-operations/manage-layered-network/howto-deploy-aks-layered-network.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ These steps deploy Layered Network Management to the AKS cluster. The cluster is
4848
1. To validate the installation was successful, run:
4949

5050
```bash
51-
kubectl get pods
51+
kubectl get pods -n azure-iot-operations
5252
```
5353

5454
You should see an output that looks like the following example:
@@ -131,7 +131,7 @@ These steps deploy Layered Network Management to the AKS cluster. The cluster is
131131
1. To validate the instance, run:
132132

133133
```bash
134-
kubectl get pods
134+
kubectl get pods -n azure-iot-operations
135135
```
136136

137137
The output should look like:
@@ -145,7 +145,7 @@ These steps deploy Layered Network Management to the AKS cluster. The cluster is
145145
1. To view the service, run:
146146

147147
```bash
148-
kubectl get services
148+
kubectl get services -n azure-iot-operations
149149
```
150150

151151
The output should look like the following example:
@@ -157,7 +157,7 @@ These steps deploy Layered Network Management to the AKS cluster. The cluster is
157157
1. To view the config maps, run:
158158

159159
```bash
160-
kubectl get cm
160+
kubectl get cm -n azure-iot-operations
161161
```
162162
The output should look like the following example:
163163
```

0 commit comments

Comments
 (0)