Skip to content

Commit aa62e68

Browse files
Fixed warnings
1 parent 1536a93 commit aa62e68

File tree

2 files changed

+70
-70
lines changed

2 files changed

+70
-70
lines changed

articles/aks/advanced-network-observability-bring-your-own-cli.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,20 @@ az group create --name $RESOURCE_GROUP --location $LOCATION
7575

7676
### [**Non-Cilium**](#tab/non-cilium)
7777
Create an AKS cluster with Advanced Network Observability with a non-Cilium data plane using the [`az aks create`](/cli/azure/aks#az_aks_create) command and the `--enable-advanced-networking-observability` flag.
78-
```azurecli-interactive
79-
# Set an environment variable for the AKS cluster name. Make sure to replace the placeholder with your own value.
80-
export CLUSTER_NAME="<aks-cluster-name>"
81-
82-
# Create an AKS cluster
83-
az aks create \
84-
--name $CLUSTER_NAME \
85-
--resource-group $RESOURCE_GROUP \
86-
--generate-ssh-keys \
87-
--network-plugin azure \
88-
--network-plugin-mode overlay \
89-
--pod-cidr 192.168.0.0/16 \
90-
--enable-advanced-network-observability
91-
```
78+
```azurecli-interactive
79+
# Set an environment variable for the AKS cluster name. Make sure to replace the placeholder with your own value.
80+
export CLUSTER_NAME="<aks-cluster-name>"
81+
82+
# Create an AKS cluster
83+
az aks create \
84+
--name $CLUSTER_NAME \
85+
--resource-group $RESOURCE_GROUP \
86+
--generate-ssh-keys \
87+
--network-plugin azure \
88+
--network-plugin-mode overlay \
89+
--pod-cidr 192.168.0.0/16 \
90+
--enable-advanced-network-observability
91+
```
9292

9393
### [**Cilium**](#tab/cilium)
9494

@@ -97,25 +97,25 @@ Create an AKS cluster with Advanced Network Observability with Cilium using the
9797
> [!NOTE]
9898
> Clusters with Cilium support Advanced Observability starting with Kubernetes version 1.29.
9999
100-
```azurecli-interactive
101-
# Set an environment variable for the AKS cluster name. Make sure to replace the placeholder with your own value.
102-
export CLUSTER_NAME="<aks-cluster-name>"
103-
104-
# Create an AKS cluster
105-
az aks create \
106-
--name $CLUSTER_NAME \
107-
--resource-group $RESOURCE_GROUP \
108-
--generate-ssh-keys \
109-
--location eastus \
110-
--max-pods 250 \
111-
--network-plugin azure \
112-
--network-plugin-mode overlay \
113-
--network-dataplane cilium \
114-
--node-count 2 \
115-
--pod-cidr 192.168.0.0/16 \
116-
--kubernetes-version 1.29 \
117-
--enable-advanced-network-observability
118-
```
100+
```azurecli-interactive
101+
# Set an environment variable for the AKS cluster name. Make sure to replace the placeholder with your own value.
102+
export CLUSTER_NAME="<aks-cluster-name>"
103+
104+
# Create an AKS cluster
105+
az aks create \
106+
--name $CLUSTER_NAME \
107+
--resource-group $RESOURCE_GROUP \
108+
--generate-ssh-keys \
109+
--location eastus \
110+
--max-pods 250 \
111+
--network-plugin azure \
112+
--network-plugin-mode overlay \
113+
--network-dataplane cilium \
114+
--node-count 2 \
115+
--pod-cidr 192.168.0.0/16 \
116+
--kubernetes-version 1.29 \
117+
--enable-advanced-network-observability
118+
```
119119

120120
---
121121

@@ -126,20 +126,20 @@ Enable Advanced Network Observability on an existing cluster using the [`az aks
126126
> [!NOTE]
127127
> Clusters with the Cilium data plane support Advanced Observability starting with Kubernetes version 1.29.
128128
129-
```azurecli-interactive
130-
az aks update \
131-
--resource-group $RESOURCE_GROUP \
132-
--name $CLUSTER_NAME \
133-
--enable-advanced-network-observability
134-
```
129+
```azurecli-interactive
130+
az aks update \
131+
--resource-group $RESOURCE_GROUP \
132+
--name $CLUSTER_NAME \
133+
--enable-advanced-network-observability
134+
```
135135

136136
## Get cluster credentials
137137

138138
Get your cluster credentials using the [`az aks get-credentials`](/cli/azure/aks#az_aks_get_credentials) command.
139139

140-
```azurecli-interactive
141-
az aks get-credentials --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP
142-
```
140+
```azurecli-interactive
141+
az aks get-credentials --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP
142+
```
143143

144144
## Visualization using Grafana
145145

@@ -534,9 +534,9 @@ Get your cluster credentials using the [`az aks get-credentials`](/cli/azure/aks
534534

535535
If you don't plan on using this application, delete the other resources you created in this article using the [`az group delete`](/cli/azure/#az_group_delete) command.
536536

537-
```azurecli-interactive
538-
az group delete --name $RESOURCE_GROUP
539-
```
537+
```azurecli-interactive
538+
az group delete --name $RESOURCE_GROUP
539+
```
540540

541541
## Next steps
542542

articles/aks/advanced-network-observability-cli.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -217,20 +217,20 @@ Use [az aks update](/cli/azure/aks#az-aks-update) to link the Azure Monitor and
217217
218218
1. Make sure the Azure Monitor pods are running using the `kubectl get pods` command.
219219

220-
```azurecli-interactive
221-
kubectl get pods -o wide -n kube-system | grep ama-
222-
```
220+
```azurecli-interactive
221+
kubectl get pods -o wide -n kube-system | grep ama-
222+
```
223223

224-
Your output should look similar to the following example output:
224+
Your output should look similar to the following example output:
225225

226-
```output
227-
ama-metrics-5bc6c6d948-zkgc9 2/2 Running 0 (21h ago) 26h
228-
ama-metrics-ksm-556d86b5dc-2ndkv 1/1 Running 0 (26h ago) 26h
229-
ama-metrics-node-lbwcj 2/2 Running 0 (21h ago) 26h
230-
ama-metrics-node-rzkzn 2/2 Running 0 (21h ago) 26h
231-
ama-metrics-win-node-gqnkw 2/2 Running 0 (26h ago) 26h
232-
ama-metrics-win-node-tkrm8 2/2 Running 0 (26h ago) 26h
233-
```
226+
```output
227+
ama-metrics-5bc6c6d948-zkgc9 2/2 Running 0 (21h ago) 26h
228+
ama-metrics-ksm-556d86b5dc-2ndkv 1/1 Running 0 (26h ago) 26h
229+
ama-metrics-node-lbwcj 2/2 Running 0 (21h ago) 26h
230+
ama-metrics-node-rzkzn 2/2 Running 0 (21h ago) 26h
231+
ama-metrics-win-node-gqnkw 2/2 Running 0 (26h ago) 26h
232+
ama-metrics-win-node-tkrm8 2/2 Running 0 (26h ago) 26h
233+
```
234234

235235
1. We have created sample dashboards. They can be found under the **Dashboards > Azure Managed Prometheus** folder. They have names like **"Kubernetes / Networking / `<name>`"**. The suite of dashboards includes:
236236
* **Clusters:** shows Node-level metrics for your clusters.
@@ -248,18 +248,18 @@ Use [az aks update](/cli/azure/aks#az-aks-update) to link the Azure Monitor and
248248

249249
Install the Hubble CLI to access the data it collects using the following commands:
250250

251-
```azurecli-interactive
252-
# Set environment variables
253-
export HUBBLE_VERSION=0.11
254-
export HUBBLE_ARCH=amd64
255-
256-
#Install Hubble CLI
257-
if [ "$(uname -m)" = "aarch64" ]; then HUBBLE_ARCH=arm64; fi
258-
curl -L --fail --remote-name-all https://github.com/cilium/hubble/releases/download/$HUBBLE_VERSION/hubble-linux-${HUBBLE_ARCH}.tar.gz{,.sha256sum}
259-
sha256sum --check hubble-linux-${HUBBLE_ARCH}.tar.gz.sha256sum
260-
sudo tar xzvfC hubble-linux-${HUBBLE_ARCH}.tar.gz /usr/local/bin
261-
rm hubble-linux-${HUBBLE_ARCH}.tar.gz{,.sha256sum}
262-
```
251+
```azurecli-interactive
252+
# Set environment variables
253+
export HUBBLE_VERSION=0.11
254+
export HUBBLE_ARCH=amd64
255+
256+
#Install Hubble CLI
257+
if [ "$(uname -m)" = "aarch64" ]; then HUBBLE_ARCH=arm64; fi
258+
curl -L --fail --remote-name-all https://github.com/cilium/hubble/releases/download/$HUBBLE_VERSION/hubble-linux-${HUBBLE_ARCH}.tar.gz{,.sha256sum}
259+
sha256sum --check hubble-linux-${HUBBLE_ARCH}.tar.gz.sha256sum
260+
sudo tar xzvfC hubble-linux-${HUBBLE_ARCH}.tar.gz /usr/local/bin
261+
rm hubble-linux-${HUBBLE_ARCH}.tar.gz{,.sha256sum}
262+
```
263263

264264
## Visualize the Hubble Flows
265265

@@ -275,7 +275,7 @@ Install the Hubble CLI to access the data it collects using the following comman
275275
hubble-relay-7ddd887cdb-h6khj 1/1 Running 0 23h
276276
```
277277
278-
1. Port forward Hubble Relay using the `kubectl port-forward` command.
278+
1. Port forward Hubble Relay using the `kubectl port-forward` command.
279279
280280
```azurecli-interactive
281281
kubectl port-forward -n kube-system svc/hubble-relay --address 127.0.0.1 4245:443

0 commit comments

Comments
 (0)