Repository navigation
feat(chart): support probes for cert-manager and cainjector - #5670
maximee-leroyy wants to merge 1 commit into
Conversation
Signed-off-by: Maxime Leroy <[email protected]>
|
Hi @maxime1907. Thanks for your PR. I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/assign @wallrj |
|
/ok-to-test |
This comment was marked as duplicate.
This comment was marked as duplicate.
wallrj
left a comment
There was a problem hiding this comment.
@maxime1907 I'm not convinced that user configurable liveness, readiness and startup probes are appropriate for the controller or cainjector pods because:
- They both use a leader election process:
- Liveness is already handled by the leader election process, which blocks the controllers from starting until this process has started leading and exits the process if it fails to renew the leadership lease.
- Readiness is not necessary, because the leader election mechanism ensures that there is only ever one running pod for each of the deployments, so there will only ever be one Service endpoint.
- Startup is not appropriate because both of these pods start up quickly but may wait indefinitely if they startup when there is already an elected leader.
-
If these probes are necessary, the user should not have to decide how to configure them. How would they know what are appropriate endpoints for these health checks? The cert-manager maintainers are best placed to know if and how these checks should be performed.
-
If there are advanced users who nevertheless want to set these probes and who understand the implications of setting them, they can use Helm post rendering directly or via a deployment tool like Flux.
Please challenge me on those points because I'm not 100% sure. Come to our daily stand up meeting if you want to chat about it in person..
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: maxime1907 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
I am not an expert in leader election so feel free to correct me if i said something wrong! |
|
Adding a 'more information needed' label- I think we should check with upstream what the best practices are for this and maybe document it in our contributor docs helm charts section https://cert-manager.io/docs/contributing/policy/#additional-configuration-options-for-the-helm-chart |
|
@maxime1907 Sorry for not responding sooner. Thank you for answering my points and for making us aware of the LeaderElectionHealthz adaptor. We have just merged #5962 which adds an optional liveness probe and It's a bit more difficult to integrate the LeaderElectionHealthzAdaptor with the cainjector; that will require a change in controller-runtime, but we will try and get that done next. |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@wallrj Thanks for adding the optional liveness probe to the controller and okay for the cainjector. |
Pull Request Motivation
Currently it is not possible to configure readiness and liveness probes for all created Pods, when using cert-manager Helm chart. To conform to Kubernetes best-practices provide the ability to allow configuration probes in all created Pods.
Closes #5626
Kind
/kind feature
Release Note