Skip to content

docs(node-shutdown): add unattended-upgrades conflict warning #51307

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iscultas
Copy link

Description

Add warning about using unattended-upgrades package together with Node graceful shutdown.

Issue

Closes: kubernetes/kubernetes#102818

Copy link

linux-foundation-easycla bot commented Jun 19, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added the language/en Issues or PRs related to English language label Jun 19, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign reylejano for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Jun 19, 2025
@k8s-ci-robot
Copy link
Contributor

Welcome @iscultas!

It looks like this is your first PR to kubernetes/website 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/website has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jun 19, 2025
Copy link

netlify bot commented Jun 19, 2025

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 80a3e28
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/68547e6d90297400084dd6a3
😎 Deploy Preview https://deploy-preview-51307--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@iscultas
Copy link
Author

/assign @reylejano

Comment on lines +104 to +111
{{< warning >}}

unattended-upgrades package conflicts with Node graceful shutdown. Kubelet fails to obtain the necessary lock to handle shutdown events
properly if the `shutdownGracePeriod` value is greater than 30 seconds. unattended-upgrades configuration must be suppressed by creating
`/etc/systemd/logind.conf.d/unattended-upgrades-logind-maxdelay.conf` symlink to `/dev/null`. Refer to
[logind.conf documentation](https://www.freedesktop.org/software/systemd/man/latest/logind.conf.html) for more details.

{{< /warning >}}
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd put this in the page introduction, but as a caution not a warning

{{< warning >}}

The `unattended-upgrades` package from Debian conflicts with node graceful shutdown in
its normal configuration.
If you use the default configuration of `unattended-upgrades`, which customizes the server shutdown
grace period, then the kubelet fails to obtain the necessary lock to handle shutdown events properly.

This happens if the `shutdownGracePeriod` value is greater than 30 seconds.
To avoid this, you can suppress part of the `unattended-upgrades` configuration,
by making `/etc/systemd/logind.conf.d/unattended-upgrades-logind-maxdelay.conf` be a symbolic link
to `/dev/null`.

For more details, refer to the
[`logind.conf` documentation](https://www.freedesktop.org/software/systemd/man/latest/logind.conf.html).

{{< /caution >}} 

@lmktfy
Copy link
Contributor

lmktfy commented Jun 21, 2025

/sig node
/language en

@k8s-ci-robot k8s-ci-robot added the sig/node Categorizes an issue or PR as relevant to SIG Node. label Jun 21, 2025
@bart0sh bart0sh moved this from Triage to Needs Reviewer in SIG Node: code and documentation PRs Jun 23, 2025
@iscultas
Copy link
Author

@reylejano I hope you have a moment to check out this PR. Thanks a bunch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language sig/node Categorizes an issue or PR as relevant to SIG Node. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

Graceful node shutdown conflicts with unattended-upgrades package
4 participants