Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55123

Kubernetes plugin does not respect 'no_proxy' configurations when calling Kubernetes API

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • kubernetes-plugin
    • None

      Kubernetes plugin does not respect 'no_proxy' Java property, Environment Variable or Jenkins Proxy config from 'Jenkins->Manage Jenkins->Manage Plugins->Advanced Tab'.

       

      I have confirmed Kubernetes API access works from the console of the Jenkins server via 'curl' with appropriate proxy environment variables set.

       

      I have used the 'Validate Proxy' button from the 'Jenkins->Manage Jenkins->Manage Plugins->Advanced Tab' I get ' Failed to connect to https://xxxxxxxxxxxxxx.

      javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated' and confirmed the request never hits the proxy using proxy logs.

       

      If I configure the Kubernetes plugin slaves never start and if I use the 'Test Connection' button in the plugin config I get 'Error testing connection https://xxxxxxxxxxxxxx: java.io.IOException: Unexpected response code for CONNECT: 403' and have confirmed the request does hit the proxy using proxy logs.

       

          [JENKINS-55123] Kubernetes plugin does not respect 'no_proxy' configurations when calling Kubernetes API

          Dax Games created issue -
          Dax Games made changes -
          Summary Original: Kubernetes plugin does not respect 'no_proxy' environment variable. New: Kubernetes plugin does not respect 'no_proxy' configurations
          Dax Games made changes -
          Summary Original: Kubernetes plugin does not respect 'no_proxy' configurations New: Kubernetes plugin does not respect 'no_proxy' configurations when calling Kubernetes API
          Dax Games made changes -
          Comment [ Carlos/Plugin Maintainers,

          Can we have a way to pass proxy and no_proxy settings from the Jenkins master to the Kubernetes slave?

          Thanks. ]
          Carlos Sanchez made changes -
          Remote Link New: This issue links to "PR-477 (Web Link)" [ 22761 ]
          Jesse Glick made changes -
          Assignee Original: Carlos Sanchez [ csanchez ]

            Unassigned Unassigned
            daxgames Dax Games
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: