-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Fix: kubeadm secondary use file discovery validation #12132
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
base: master
Are you sure you want to change the base?
Fix: kubeadm secondary use file discovery validation #12132
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tico88612 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 |
/ok-to-test |
/retest |
@ledroide @schaenzer @huziahmetovsv any of you could test this fix to check if it fix #11835 ? |
not working for me
|
@huziahmetovsv, can you provide your variables setting (the simpler the better) and OS? Or can you check |
variables
os version
no file folder content
|
@huziahmetovsv Is this a cluster upgrade? I'm not quite sure how you're doing it? |
as i mentioned earlier:
|
@huziahmetovsv This may have caused a conflict with the condition kubespray/roles/kubernetes/kubeadm/tasks/main.yml Lines 61 to 70 in a55932e
I can add checking if Might be like |
Let me add that the original issue was an installation issue, not an upgrade issue. I think the situation you mentioned should be a different issue, but I will try to fix that. |
The validation step is moved to the end to avoid the loss of files that may lead to verification failure. Signed-off-by: ChengHao Yang <[email protected]>
When installing or upgrading in the past, there was no validation config. Check if the file exists first to prevent subsequent validation errors. Signed-off-by: ChengHao Yang <[email protected]>
a81e9c1
to
3b7c0dc
Compare
@huziahmetovsv could you help me test this fix again? |
it worked. And now file cluster-info-discovery-kubeconfig.yaml available on node file content
may i ask? how to check if anonymous access is disabled now? |
kubespray/roles/kubespray_defaults/defaults/main/main.yml Lines 12 to 14 in 6c5c45b
I went to the anonymous related notes and it seems that the Kubespray installation does not disable anonymous access. You have to change the static pod of kube-apiserver to false to disable anonymous access. |
Should this be merged @tico88612 ? Before 2.28 ? |
This PR will fix the installation of Because of the inclusion of upgrade fixes, it has been changed to the merge method. /label tide/merge-method-merge |
What type of PR is this?
/kind bug
What this PR does / why we need it:
The validation step is moved to the end to avoid the loss of files that may lead to validation failure.
Which issue(s) this PR fixes:
Fixes #11835
Special notes for your reviewer:
I hope someone who has encountered this problem can help me review it.
Does this PR introduce a user-facing change?: