Skip to content

Make k8s-lens-proxy optional (atleast for port-forward and exec) #766

@jkroepke

Description

@jkroepke

What would you like to be added?

I would like to like to have the ability to disable the k8s-lens-proxy.

A side from "i don't know, why the proxy exists" in general, it causes trouble in context of pod shell and terminal.

Background: I have to reach a private Kubernetes Cluster which is accessible behind a SSH Bastion Jump host.

Instead working with local port forward, I'm using the ssh -D to setup an SOCKS5 proxy. The produces is described here: https://kubernetes.io/docs/tasks/extend-kubernetes/socks5-proxy-access-api/

But this is not compatible with kubectl proxy or with the lens proxy, because I got an error in Lens:

error: unable to upgrade connection: error dialing backend: dial tcp: lookup ..eks.amazonaws.com: no such host

Thats true, because the hostname is only resolvable from the bastion host, but not from the local host.

But invoking kubectl port-forward and kubectl exec outside of Lens works. I also guess there might be an bug in Kubernetes proxy function.

But I see no reasons for using the proxy construct in general.

Ref: https://github.com/kubernetes/kubernetes/blob/122219790f82f5843d99aacbcb3d96162161e027/staging/src/k8s.io/client-go/tools/clientcmd/api/v1/types.go#L87

Why is this needed?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions