Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Optionally adds liveness and readiness probes to jenkins #3245

Merged
merged 2 commits into from
Jan 8, 2018

Conversation

jtslear
Copy link
Contributor

@jtslear jtslear commented Jan 5, 2018

  • Jenkins takes awhile to start the very first time, so we need to wait a bit before the first check
    • A value of 120 seconds seemed just right, but flexibility provided just in case it is not
  • Setting the healthcheck endpoint to /login as that is what returns an HTTP200 when jenkins is alive
  • This assists in addressing [stable/jenkins] Not able to use Ingress on GKE #772

* Jenkins takes awhile to start the very first time, so we need to wait
a bit before the first check
@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 5, 2018
@jtslear
Copy link
Contributor Author

jtslear commented Jan 5, 2018

/assign @sameersbn

@sameersbn
Copy link
Contributor

@jtslear I believe the probes should be enabled by default. Is there any reason for making the heath checks optional?

@sameersbn
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 8, 2018
@jtslear
Copy link
Contributor Author

jtslear commented Jan 8, 2018

I set it to false by default due to the fact that this was not included in the template from the start. Personally having these checks in place makes sense. But due to not knowing why there weren't included in the first place, I imagine a reason must exist.

Let me know and I'll gladly flip the boolean.

httpGet:
path: /login
port: http
initialDelaySeconds: {{ .Values.Master.HealthProbesTimeout | default 120 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change this to {{ .Values.Master.HealthProbesTimeout }} and add the default value in the values.yaml file

httpGet:
path: /login
port: http
initialDelaySeconds: {{ .Values.Master.HealthProbesTimeout | default 120 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change this to {{ .Values.Master.HealthProbesTimeout }}

@@ -34,6 +34,8 @@ Master:
# HostName: jenkins.cluster.local
# NodePort: <to set explicitly, choose port between 30000-32767
ContainerPort: 8080
# Enable Kubernetes Liveness and Readiness Probes
HealthProbes: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please enable the probes by default and update the default value on the readme

@sameersbn
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 8, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jtslear, sameersbn

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 8, 2018
@k8s-ci-robot k8s-ci-robot merged commit 8b9aa73 into helm:master Jan 8, 2018
wmcdona89 pushed a commit to wmcdona89/charts that referenced this pull request Aug 30, 2020
* Optionally adds liveness and readiness probes to jenkins

* Jenkins takes awhile to start the very first time, so we need to wait
a bit before the first check

* Addressing requested changes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants