headlamp icon indicating copy to clipboard operation
headlamp copied to clipboard

bad gateway while accessing AKS cluster

Open maneeshmp opened this issue 1 year ago • 9 comments

We have an Azure AD integrated AKS cluster. I have only namespace level access. When I start headlamp, i get a bad gateway error. Under settings I have configured the namespaces I have access still the same error was displayed. I am using the latest version of headlamp downloaded from site.

maneeshmp avatar Aug 22 '23 04:08 maneeshmp

I have the same error, but I am using cluster on OCI. I am able to connect with the cluster when using kubectl.

I wonder if headlamp is unable to handle authentication with command, like oci?

This is what in my kubeconfig at the moment:

users:
- name: user-foo
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1beta1
      command: oci
      args:
      - ce
      - cluster
      - generate-token
      - --cluster-id
      - foo
      - --region
      - bar
      env: []

winston0410 avatar Aug 28 '23 15:08 winston0410

Having the same problem on this end. Noting the following

  • I have full access to all resources
  • This cluster is running as an Azure Kubernetes Service
  • Running on AKS, we are using the kubelogin plugin
  • This AKS is running behind a private endpoint and a VPN
  • kubectl commands work without issue

aravol avatar Nov 22 '23 17:11 aravol

Hey folks, as some of you have mentioned Headlamp doesn't support authentication via commands like kubelogin or oci yet. This is a known issue and is on our list.

yolossn avatar Nov 28 '23 13:11 yolossn

@yolossn @joaquimrocha This was removed 0.22.0, is it planned?

shlomiassaf avatar Jan 21 '24 08:01 shlomiassaf

Hey @shlomiassaf, It is planned, we will work on it in an upcoming release. Recently I discovered that the CLI based authentication is supported partially. Incase you are facing this with AKS run kubelogin convert-kubeconfig -l azurecli and check if it works for you.

yolossn avatar Jan 22 '24 05:01 yolossn