Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator: Add dynamic hooks for graceful restarts #4907

Closed
wants to merge 5 commits into from

Conversation

nicolaferraro
Copy link
Member

Cover letter

This introduces dynamic hooks that allow to handle both managed (e.g. upgrades) and unmanaged (k8s upgrades, node draining etc.) restarts.

Opening as draft as it needs some discussion with core/cloud before merging.
More details later...

@jcsp jcsp changed the title Add dynamic hooks for graceful restarts operator: Add dynamic hooks for graceful restarts May 25, 2022
PostStart: r.getPostStartHook(),
PreStop: r.getPreStopHook(),
},
ReadinessProbe: r.getReadinessProbe(),
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice if commit message include the reason why readiness probe is introduced. The initial design was assuming that unready brokers should be exposed regardless of the internal state. Kafka clients would retries if necessary. If this is added I would assume we need to change the Service definition

PublishNotReadyAddresses: true,

@mmedenjak mmedenjak added the kind/enhance New feature or request label Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/k8s kind/enhance New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants