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: scenarios/DeployIGonAKS/README.md
+21-17Lines changed: 21 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,32 +64,36 @@ az aks create \
64
64
--no-ssh-key
65
65
```
66
66
67
-
## Connect to the cluster
67
+
## Install kubectl
68
68
69
69
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
70
71
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
+
```
72
75
73
-
```bash
74
-
if! [ -x"$(command -v kubectl)" ];then az aks install-cli;fi
75
-
```
76
+
## Configure credentials
76
77
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:
80
79
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.
83
82
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
87
85
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
89
91
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.
0 commit comments