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

daemon: Explicitly stop kubelet.service first before rebooting #786

Conversation

cgwalters
Copy link
Member

This is resurrecting the other part of:
#237

Basically it's not advantageous to us to try to shut down everything
at once; we want to ensure kubelet can fully shut itself down
gracefully, and only after that initiate the reboot for the rest
of the machine.

This also sets the MCD up to be in full explicit control of
kubelet shutdown; e.g. if we wanted to configure timeout behavior
more, we could easily do that with this "2 phase" shutdown (though
it would involve some custom code and not a shell script one-liner).

This is resurrecting the other part of:
openshift#237

Basically it's not advantageous to us to try to shut down everything
at once; we want to ensure kubelet can fully shut itself down
gracefully, and only after that initiate the reboot for the rest
of the machine.

This also sets the MCD up to be in full explicit control of
kubelet shutdown; e.g. if we wanted to configure timeout behavior
more, we could easily do that with this "2 phase" shutdown (though
it would involve some custom code and not a shell script one-liner).
@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 22, 2019
@cgwalters
Copy link
Member Author

The thing we want to add at some point on top of this that #237 was trying to do is ensure that kubelet's SIGTERM handling evicts daemonset pods too, and doesn't allow new ones to be scheduled.

@rphillips
Copy link
Contributor

lgtm

@cgwalters
Copy link
Member Author

@rphillips Were you intentionally omtting a / there, to defer to a second review? (I'm fine if that's the case, just curious)

@ashcrow
Copy link
Member

ashcrow commented May 22, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 22, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashcrow, cgwalters

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

The pull request process is described here

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

@openshift-merge-robot openshift-merge-robot merged commit dfb39cd into openshift:master May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants