AKS kubectl Access

From NovaOrdis Knowledge Base
Revision as of 21:56, 31 March 2021 by Ovidiu (talk | contribs) (→‎Procedure to Enable Local kubectl Access)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Procedure to Enable Local kubectl Access

Install and configure Azure CLI. For more details, see:

Azure CLI

Login:

az login

More details:

Azure Security Operations | Login

Configure the local kubectl context:

az aks get-credentials --resource-group <resource-group-name> --name <aks-cluster-name>

This command will automatically update the local kubectl context configuration .kube/config and add a new context named after the AKS cluster.

With Azure Cloud Shell

Azure Cloud Shell