Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-1472

Jenkins.io healtcheck is broken on Kubernetes

    Details

    • Similar Issues:

      Description

      This side effect is introduced by INFRA-1462.

      Basically it changes the jenkinsio containers to redirect every non jenkins.io request to https://jenkins.io/<uri>.

      What happened here, is that kubelet send http healthcheck to container without using jenkins.io url, so the query was redirected externally through Ingress -> Service -> Container but because no containers were attached to the jenkinsio service (healt check wasn't successful yet), the redirection was failing.

      In order to fix this we have two solutions.
      1) Modify jenkins.io containers to only redirect jenkins-ci.org,www.jenkins-ci.org,www.jenkins.io to jenkins.io

      2) Health check monitor port instead of HTTP url

      I am more in favor of solution two as the health check doesn't rely on website content but only if Nginx started or not.

        Attachments

          Activity

          Hide
          olblak Olivier Vernin added a comment -
          Show
          olblak Olivier Vernin added a comment - PR
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vernin Olivier
          Path:
          dist/profile/templates/kubernetes/resources/jenkinsio/deployment.yaml.erb
          http://jenkins-ci.org/commit/jenkins-infra/18c14855e0deab675c3af8f0f6e6b723062b27fc
          Log:
          Merge pull request #959 from olblak/INFRA-1472

          INFRA-1472 jenkins.io healtcheck must monitor TCP port

          Compare: https://github.com/jenkins-infra/jenkins-infra/compare/bd6d4470ba67...18c14855e0de

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vernin Olivier Path: dist/profile/templates/kubernetes/resources/jenkinsio/deployment.yaml.erb http://jenkins-ci.org/commit/jenkins-infra/18c14855e0deab675c3af8f0f6e6b723062b27fc Log: Merge pull request #959 from olblak/ INFRA-1472 INFRA-1472 jenkins.io healtcheck must monitor TCP port Compare: https://github.com/jenkins-infra/jenkins-infra/compare/bd6d4470ba67...18c14855e0de

            People

            • Assignee:
              olblak Olivier Vernin
              Reporter:
              olblak Olivier Vernin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: