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

Add a setting to provide a default global value for connectTimeout

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • kubernetes-plugin
    • None
    • Jenkins : 2.332.3
      Kubernetes plugin : 3600.v144b_cd192ca_a_

      Hi,

      We create kubernetes namespaces on the fly in some of our jobs (with pseudo-random names) and then create a bunch of pods inside those newly-created namespaces.

      This works fine except that when the k8s cluster is a bit loaded, we get this error:

      not ready after 5000 MILLISECONDS
      

      We would like to change the default connection timeout. However, since the namespaces are dynamically created (and their name is not easily predictable), it is not possible to use system properties to configure it. The plugin therefore ends up using the default value from DEFAULT_CONNECT_TIMEOUT_SECONDS in src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloud.java.

      Would it be possible to add a global option (e.g under Jenkins' System Configuration) so that this default value can be customized? (possibly falling back to DEFAULT_CONNECT_TIMEOUT_SECONDS as a last resort)

      Best regards,
      François

      PS : maybe this global configuration form could also expose other similar properties (e.g retentionTimeout, readTimeout, maxRequestsPerHost, etc.)

            Unassigned Unassigned
            fpoirotte François Poirotte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: