I’m having problems adding our AKS cluster to the LENS desktop. I went to the LENS documentation but I find that it glosses over any detailed steps. Is there someplace that does a step by step walkthrough on configuring the desktop to connect to the AKS resources?
Are you able to connect to the cluster using kubectl (on the same system you are running Lens)? You could try launching Lens from the same shell that kubectl works in. In some cases Lens does not get the same shell environment when launched from the GUI. What platform are you running Lens on?
We’re running LENS under windows 10. It’s a VM running in the same azure subscription and is peered with the K8 cluster. The same instance of LENS while not able to access this environment’s cluster does access other K8cluster in our other environments/subscriptions.
no, even following the “step by step” for using Kubectl under the Azure CLI, I could not get a list of anything in the cluster just the same errors listed above.
One thing that I don’t understand is the syntax and source of the data (or generate it) I need enter in the add cluster panel. I copied over those settings for a different set of cluster in a different azure subscription from my local machine and I can connect to those other cluster from the VM, I just can’t seem to add these new clusters.
It could be an AKS issue with connecting to that cluster. Lens relies on the same kube config that kubectl uses. If you can’t connect using kubectl then Lens typically won’t work either. Unfortunately I don’t have any experience with AKS, maybe someone else here does.
Hi There, I am having a similar issues connecting to EKS clusters, I am able to connect with kubectl command and no issues. I think Lens desktop on windows 10 isn’t working as expected. But my colleagues can connect using Lens on their mac’s.
Failed to get /version for clusterId=XXXXXXXXXXXX: Unauthorized.
You could try starting Lens from the terminal where you know kubectl works. Rerun the aws eks update-kubeconfig, and check that Lens is using the same kube config as kubectl? (In the Lens Catalog Cluster list each local cluster has a file= ... label.
When you say launch from the same terminal, do you mean launch the shortcut? I am on windows and facing the same issue. I can connect to AWS using kubectl and k9s both, but not from lens.