Add Azure AKS clusters#
This page explains how to connect to an Azure AKS cluster.
Prerequisites#
Before connecting to your AKS cluster, ensure that you have installed and configured:
Contact the Azure administrator of your organization for details.
Steps#
From the OS terminal
-
Log in to the Azure CLI:
2. Set the Azure subscription that contains your AKS cluster:az loginaz account set --subscription <subscription-id> -
Download cluster credentials:
az aks get-credentials --resource-group <resource-group> --name <cluster-name>Example of system response:
Merged "cluster-name" as current context in <path-to-kubeconfig>
After completing these steps, the AKS cluster is added to you local kubeconfig file. Then you can open Lens Desktop, and view it in Kubernetes Clusters > Local Kubeconfigs.