Unable to Connect to Lens Using Kubeconfig File

Hi everyone,

I’m encountering an issue when trying to connect to my Kubernetes cluster via Lens using the provided kubeconfig file. Here’s the error I’m seeing in the logs:

E0917 16:30:13.110187 20788 proxy_server.go:147] Error while proxying request: dial tcp 10.10.17.72:6443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Failed to get /version for clusterId=2a0ac589a5b174aacbf42fcc5a8c5413: Internal Server Error
This error repeats several times, with the /version check failing, and it seems that Lens is unable to establish a connection to the Kubernetes API server.

Cluster information:

  • Kubernetes version: 1.23.9
  • Installation method: Manual (kubectl and kubeadm)
  • Host OS: Debian 11

Here’s what I’ve tried so far:

  • Verified that the IP 10.10.17.72:6443 is correct and reachable from my environment.
  • Checked firewall rules to ensure that traffic on port 6443 is allowed.
  • Restarted the Kubernetes control plane on the master node, but the issue persists.

Has anyone encountered something similar or could provide any suggestions on how to resolve this?

Any help would be greatly appreciated!
Best regards
Ryad