-
Notifications
You must be signed in to change notification settings - Fork 40k
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
kubeadm: update preflight check #129450
base: master
Are you sure you want to change the base?
kubeadm: update preflight check #129450
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carlory 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold
i'm +1 to have preflight for the kubelet tools that are required.
kubeadm: added preflight check for
losetup
on Linux nodes
please add some explanation in the release note "it's required by the kubelet for doing X".
LGTM label has been added. Git tree hash: 4ca6187b682854bda76ce7e43d13dfa4694ca7d9
|
unrelated failure
updated. |
@@ -83,6 +83,7 @@ func addExecChecks(checks []Checker, execer utilsexec.Interface, k8sVersion stri | |||
} | |||
|
|||
checks = append(checks, | |||
InPathCheck{executable: "losetup", mandatory: true, exec: execer}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cloud you add some comments to explain why we need it? So that when it needs to be removed in the future, we can quickly confirm why we added it in the first place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In PR #129317, we removed the touch
, because the code structure has been changed several times, which makes it very difficult to track down the PR where we initially added it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all the 3 tools that we preflight seem to be related to kubelet and volumes. we could add a comment that covers all 3 of them.
this PR here can merge fast.
and for https://github.com/kubernetes/kubernetes/pull/122016/files#diff-1c0013149a8afa62fc0d6d029db0ffc3564c30d336738ee32e80e3379a14455a
you can remove the nsetter part of the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HirazawaUi @neolit123 updated. And remove nsenter
in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but now we need the kubelet pr to merge first, where nsetter will actually be no longer needed. not an issue if we merge this pr first but as long as it's within the same k8s release window.
/lgtm
kubeadm: remove preflight check for nsenter on Linux nodes Signed-off-by: carlory <baofa.fan@daocloud.io>
61040f5
to
00a7849
Compare
LGTM label has been added. Git tree hash: 78e5d6d8a94ac26020af163acc82f4d2ffbc5d04
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Looks great with the links explaining why they are needed. Thanks! /lgtm |
What type of PR is this?
/kind feature
What this PR does / why we need it:
The
losetup
binary is required by kubelet. kubelet's volume manager uses it to create a fd lock.remove nsenter. kubelet's --containerized flag was deprecated in 1.14
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: