Skip to content

Support proxy-url from ~/.kube/config #2468

Open

Description

@flybyray

Environment
VS Code version: 1.68.1
OS: win32
Extension version: 0.4.0
Description

I have setup proxy-url in ~/.kube/config.

apiVersion: v1
clusters:
- cluster:
    proxy-url: socks5://localhost:1080

Usage description: https://kubernetes.io/docs/tasks/extend-kubernetes/socks5-proxy-access-api/#client-configuration

This works as it should with oc from command line.

~ $ oc version
Client Version: 4.10.0-0.okd-2022-06-10-131327
Server Version: 4.8.17
Kubernetes Version: v1.21.1+6438632

But the extension is not using this property.

Activity

  1. dgolovin commented on Aug 10, 2022

    @dgolovin
    Collaborator

    @flybyray this issue #1925534 describes what I see locally.

  2. dgolovin commented on Aug 10, 2022

    @dgolovin
    Collaborator

    @flybyray probably I can workaround oc login issue, by getting proxy-url before 'oc login' then adding it back. But any 'oc login' calls outside of vscode will remove proxy-url anyway.

  3. flybyray commented on Aug 10, 2022

    @flybyray
    Author

    @flybyray this issue #1925534 describes what I see locally.

    ok now i understand. than it is only possible to have oc invocation modification to add https_proxy environmentvariable to the process all the time. :-(
    maybe some path to a wrapper oc

  4. dgolovin commented on Aug 15, 2022

    @dgolovin
    Collaborator

    Related issue in @kubernetes/nodejs-client package kubernetes-client/javascript#853.

  5. modified the milestones: 0.6.0, 0.7.0 on Aug 24, 2022
  6. modified the milestones: 0.7.0, 0.8.0 on Aug 24, 2022
  7. modified the milestones: 1.2.0, 1.3.0 on Jan 4, 2023
  8. modified the milestones: 1.3.0, 1.5.0 on Mar 23, 2023
  9. modified the milestones: 1.6.0, 1.7.0 on Jun 2, 2023
  10. modified the milestones: 1.7.0, 1.8.0 on Jul 19, 2023
  11. modified the milestones: 1.8.0, 1.9.0 on Sep 14, 2023
  12. modified the milestones: 1.9.0, 1.10.0 on Sep 25, 2023
  13. modified the milestones: 1.10.0, 1.11.0, 1.12.0 on Nov 1, 2023
  14. modified the milestones: 1.13.0, 1.14.0 on Apr 2, 2024
  15. modified the milestones: 1.15.0, 1.16.0 on May 30, 2024
  16. modified the milestones: 1.16.0, 1.17.0 on Jun 27, 2024
  17. modified the milestones: 1.17.0, 1.19.0 on Sep 18, 2024
  18. modified the milestones: 1.19.0, 1.20.0 on Apr 29, 2025
  19. modified the milestones: 1.20.0, 1.21.0 on Jul 17, 2025
  20. modified the milestones: 1.21.0, 1.22.0 on Sep 22, 2025
  21. modified the milestones: 1.21.1, 1.22.0 on Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions