AKS kubectl Access: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:
</syntaxhighlight>
</syntaxhighlight>
More details: {{Internal|Azure_Security_Operations#Login|Azure Security Operations &#124; Login}}
More details: {{Internal|Azure_Security_Operations#Login|Azure Security Operations &#124; Login}}
Configure the local kubectl context:
<syntaxhighlight lang='bash'>
az aks get-credentials --resource-group <resource-group-name> --name <aks-cluster-name>
</syntaxhighlight>


=With Azure Cloud Shell=
=With Azure Cloud Shell=
{{Internal|Azure_Concepts#Azure_Cloud_Shell|Azure Cloud Shell}}
{{Internal|Azure_Concepts#Azure_Cloud_Shell|Azure Cloud Shell}}

Revision as of 21:55, 31 March 2021

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>

With Azure Cloud Shell

Azure Cloud Shell