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

kubelet.service: change the restart policy to always #2774

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

gthao313
Copy link
Member

@gthao313 gthao313 commented Feb 2, 2023

Issue number:

Closes #2512

Description of changes:

kubelet.service: change the restart policy to always

currently we only specify kubelet to be restarted when it on failure. However, the situation resources starvation evicts kubelet isn't recognized as failure, so kubelet won't be restarted on this situation. Therefore, setting kubelet restart policy to always can solve this issue.

Testing done:

  • created resource starvation issue to evict kubelet (exit code = 0)
    - launch small instance and add heavy computable pods to the cluster
  • verify if kubelet has been restarted

been

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Copy link
Member

@webern webern left a comment

Choose a reason for hiding this comment

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

Makes sense to me. @etungsten do you foresee any issues with this change?

Copy link
Contributor

@etungsten etungsten left a comment

Choose a reason for hiding this comment

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

Looks fine to me as long as testing results are as expected.

@gthao313 gthao313 mentioned this pull request Feb 3, 2023
11 tasks
@gthao313 gthao313 marked this pull request as ready for review February 3, 2023 22:51
@gthao313 gthao313 merged commit 7d984e2 into bottlerocket-os:develop Feb 10, 2023
@gthao313 gthao313 deleted the kubelet branch November 29, 2023 23:58
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.

kubelet service doesn't restart on failure
5 participants