Skip to content

Add health check flag to the Citadel#6961

Closed
ymesika wants to merge 5 commits intoistio:release-1.0from
ymesika:addCitadelHealthCheck
Closed

Add health check flag to the Citadel#6961
ymesika wants to merge 5 commits intoistio:release-1.0from
ymesika:addCitadelHealthCheck

Conversation

@ymesika
Copy link
Copy Markdown
Member

@ymesika ymesika commented Jul 10, 2018

Enables adding the livenessProbe to the Citadel container.

Fixes #6922

@istio-testing
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ymesika
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: ijsnellf

Assign the PR to them by writing /assign @ijsnellf in a comment when ready.

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

selfSigned: true # indicate if self-signed CA is used.
cleanUpOldCA: true
# Enabled Health Check will add the livenessProbe to the Citadel container
healthCheckEnabled: false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why do we need a flag for this? why not keep it default?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@rshriram Just to match how it was before. There is a security task to enable this optional health check but I see your point of just having it part of default without flag.

@wattli @lei-tang Do you see any issue with having the livenessProbe part of default with no need to go through a task to learn how to enable it? It will make the task a verification/customization task.

Copy link
Copy Markdown
Contributor

@lei-tang lei-tang Jul 11, 2018

Choose a reason for hiding this comment

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

I do not see an issue of having health check on by default. But the section "(Optional) Configuring the health checking" (https://preliminary.istio.io/docs/tasks/security/health-check.html#optional-configuring-the-health-checking) still uses istio-citadel-with-health-check.yaml. I am not sure that adding the healthCheckEnabled flag will address the missing istio-citadel-with-health-check.yaml file problem in #6922 for the section "(Optional) Configuring the health checking".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@lei-tang The idea is to remove the flag and always have the health check (livenessProve) in the container so users don't need to go through a task to configure/add it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Removing/adding the healthCheckEnabled flag does not solve the problem reported in #6922 because the the section "(Optional) Configuring the health checking" (https://preliminary.istio.io/docs/tasks/security/health-check.html#optional-configuring-the-health-checking) still uses istio-citadel-with-health-check.yaml to configure the parameters such as liveness-probe-interval, probe-check-interval, and etc. These parameters are orthogonal to the healthCheckEnabled flag.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's not orthogonal because Helm template generates an istio.yaml that have those paramters about livenessProbe and the users can modify those to fit their needs. Just like any customisation with all other components. Yes, the doc needs to be updated.

P.S. does it really deserve a task or is it just an installation option?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@yangminzhu Do you see an issue?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Jul 11, 2018
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 12, 2018

Codecov Report

Merging #6961 into release-1.0 will decrease coverage by 1%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           release-1.0   #6961    +/-   ##
============================================
- Coverage           72%     71%   -<1%     
============================================
  Files              355     360     +5     
  Lines            30444   31327   +883     
============================================
+ Hits             21772   22198   +426     
- Misses            7763    8254   +491     
+ Partials           909     875    -34
Impacted Files Coverage Δ
istioctl/cmd/istioctl/proxyconfig.go 14% <0%> (-64%) ⬇️
pilot/pkg/networking/core/v1alpha3/listener.go 1% <0%> (-41%) ⬇️
mixer/adapter/rbac/controller.go 29% <0%> (-24%) ⬇️
pilot/pkg/networking/core/v1alpha3/httproute.go 25% <0%> (-21%) ⬇️
pilot/pkg/networking/core/v1alpha3/tls.go 0% <0%> (-17%) ⬇️
istioctl/cmd/istioctl/proxystatus.go 8% <0%> (-16%) ⬇️
...ilot/pkg/networking/core/v1alpha3/networkfilter.go 0% <0%> (-14%) ⬇️
pilot/pkg/config/kube/ingress/conversion.go 16% <0%> (-7%) ⬇️
mixer/adapter/stackdriver/metric/bufferedClient.go 94% <0%> (-6%) ⬇️
pkg/kube/config.go 54% <0%> (-5%) ⬇️
... and 45 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 640d492...67997ef. Read the comment docs.

@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants