Skip to content

Commit 489166c

Browse files
committed
Fix inspector
1 parent 7c8f3ee commit 489166c

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

scenarios/DeployIGonAKS/README.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,32 +64,36 @@ az aks create \
6464
--no-ssh-key
6565
```
6666

67-
## Connect to the cluster
67+
## Install kubectl
6868

6969
To manage a Kubernetes cluster, use the Kubernetes command-line client, kubectl. kubectl is already installed if you use Azure Cloud Shell.
70+
Install az aks CLI locally using the az aks install-cli command
7071

71-
1. Install az aks CLI locally using the az aks install-cli command
72+
```bash
73+
if ! [ -x "$(command -v kubectl)" ]; then az aks install-cli; fi
74+
```
7275

73-
```bash
74-
if ! [ -x "$(command -v kubectl)" ]; then az aks install-cli; fi
75-
```
76+
## Configure credentials
7677

77-
2. Configure kubectl to connect to your Kubernetes cluster using the az aks get-credentials command. The following command:
78-
- Downloads credentials and configures the Kubernetes CLI to use them.
79-
- Uses ~/.kube/config, the default location for the Kubernetes configuration file. Specify a different location for your Kubernetes configuration file using --file argument.
78+
Configure kubectl to connect to your Kubernetes cluster using the az aks get-credentials command. The following command:
8079

81-
> [!WARNING]
82-
> This will overwrite any existing credentials with the same entry
80+
- Downloads credentials and configures the Kubernetes CLI to use them.
81+
- Uses ~/.kube/config, the default location for the Kubernetes configuration file. Specify a different location for your Kubernetes configuration file using --file argument.
8382

84-
```bash
85-
az aks get-credentials --resource-group $MY_RESOURCE_GROUP_NAME --name $MY_AKS_CLUSTER_NAME --overwrite-existing
86-
```
83+
> [!WARNING]
84+
> This will overwrite any existing credentials with the same entry
8785
88-
3. Verify the connection to your cluster using the kubectl get command. This command returns a list of the cluster nodes.
86+
```bash
87+
az aks get-credentials --resource-group $MY_RESOURCE_GROUP_NAME --name $MY_AKS_CLUSTER_NAME --overwrite-existing
88+
```
89+
90+
## Veryify conncetion
8991

90-
```bash
91-
kubectl get nodes
92-
```
92+
Verify the connection to your cluster using the kubectl get command. This command returns a list of the cluster nodes.
93+
94+
```bash
95+
kubectl get nodes
96+
```
9397

9498
## Install Inspektor Gadget
9599

0 commit comments

Comments
 (0)