Kubelogin failining with exit code 1

Hi Team,

We recently upgraded our aks cluster to 1.24.10 version but we are not able to use lens to view our aks cluster resources.

The output we are getting is kubelogin failing with exit code 1.

Could you please help us resolve this issue.

Thanks and Regards,
Subhasish

Hi Team,

Please find the error details :

error: unknown flag: --environmentE0607 17:26:21.335653 13924 proxy_server.go:147] Error while proxying request: getting credentials: exec: executable kubelogin failed with exit code 1getting credentials: exec: executable kubelogin failed with exit code 1

Please help us with the issue.

Thanks and Regards,
Subhasish

Hi Subhasish! Welcome to the community! Please help us narrow down the problem.

  • What Lens version do you use?
  • Are you able to access resources via kubectl?
  • Is possible that kubelogin needs to be updated too to align with aks cluster version in some way?

Hi aleksfront,

We are using lens 5 version
and yes we are able to access resources via kubectl.

Not sure kubelogin needs to be upgraded too to align with aks cluster in some way.

Please suggest further if we could update kubelogin to align with the upgraded aks version.

note the aks cluster version : 1.25.6

Please help us with the clis as well.

Thanks and Regards,
Subhasish