AKS kubectl Access: Difference between revisions
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
* [[AKS_Operations#kubectl_Access|AKS Operations]] | * [[AKS_Operations#kubectl_Access|AKS Operations]] | ||
=Procedure to Enable Local kubectl Access= | =Procedure to Enable Local kubectl Access= | ||
[[Azure_CLI#Installation|Install and [[ | [[Azure_CLI#Installation|Install]] and [[Azure_CLI#Configuration|configure]] Azure CLI. For more details, see: {{Internal|Azure_CLI#Overview|Azure CLI}} | ||
Login: | |||
<syntaxhighlight lang='bash'> | |||
az login | |||
</syntaxhighlight> | |||
More details: {{Internal|Azure_Security_Operations#Login|Azure Security Operations | Login}} | |||
Configure the local kubectl context: | |||
<syntaxhighlight lang='bash'> | |||
az aks get-credentials --resource-group <resource-group-name> --name <aks-cluster-name> | |||
</syntaxhighlight> | |||
This command will automatically update the local kubectl context configuration [[.kube config|.kube/config]] and add a new context named after the AKS cluster. | |||
=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}} |
Latest revision as of 21:56, 31 March 2021
Internal
Procedure to Enable Local kubectl Access
Install and configure Azure CLI. For more details, see:
Login:
az login
More details:
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.