Skip to content

Commit a5ab952

Browse files
Merge pull request #252745 from schaffererin/apiservervnetintegration
added command to connect to k8s cluster using kubectl
2 parents 04c8d66 + e07bc28 commit a5ab952

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

articles/aks/api-server-vnet-integration.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,14 @@ AKS clusters configured with API Server VNet Integration can have public network
250250
--disable-private-cluster
251251
```
252252
253+
## Connect to cluster using kubectl
254+
255+
* Configure `kubectl` to connect to your cluster using the [`az aks get-credentials`][az-aks-get-credentials] command.
256+
257+
```azurecli-interactive
258+
az aks get-credentials -g <resource-group> -n <cluster-name>
259+
```
260+
253261
## Next steps
254262
255263
For associated best practices, see [Best practices for network connectivity and security in AKS][operator-best-practices-network].
@@ -272,3 +280,4 @@ For associated best practices, see [Best practices for network connectivity and
272280
[az-identity-create]: /cli/azure/identity#az-identity-create
273281
[az-role-assignment-create]: /cli/azure/role/assignment#az-role-assignment-create
274282
[ref-support-levels]: /cli/azure/reference-types-and-status
283+
[az-aks-get-credentials]: /cli/azure/aks#az-aks-get-credentials

0 commit comments

Comments
 (0)