-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[PodSecurityPolicy] Move the install of psp #8744
[PodSecurityPolicy] Move the install of psp #8744
Conversation
Hi @robinAwallace. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
65a1a0d
to
cbfd9fa
Compare
Thanks @robinAwallace ! /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cristicalin, robinAwallace 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.
Thanks for doing this, most part seems good for me.
just one comment.
/cc @oomichi
cbfd9fa
to
a458589
Compare
a458589
to
3d8c1f8
Compare
e5dbedb
to
44aa66e
Compare
Thanks for updating. /lgtm |
44aa66e
to
73fceb8
Compare
/lgtm |
@robinAwallace I have exactly the same problem, thank you so much for determing the cause and fixing this!! Kubespray 2.18 remains broken for deployment of PSP-enabled clusters however. |
If i remember correctly it should just be a problem when using kubernetes v1.22+. So if you are specifying the kubernetes v1.22+ and still running kubespray-2.18 i guess you need to cherry pick this fix or use kubespray v2.19. Hope this helps you a bit 🙂 |
Yes, k8s 1.22 is the default version in Kubespray 2.18.2 , so it is affected. I cherry picked the fix it into my branch. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
I have found that there is an issue when installing HA etcd with kubeadm for kubernetes v1.22+ with 3 or more control planes when psp is enabled. Where kubelet on control plane 1 is up but non of the pods are mirrored because there is no psp to validate the request.
Which is a problem when control plane 2 and 3 does
kubeadm join
which receives 0 etcd pods from control-plane 0 and fails.This PR insures that the psp are installed before ´kubeadm join` is executed on the other control planes.
The issue have been traced down to this change:
kubernetes/kubernetes@8b9d0dc#diff-1671fef50296cdc263fe784ea570d008c1e123d15c2efb9aea27554a82080aaaR128
Which fails if the number of etcd pods is 0:
kubernetes/kubernetes@8b9d0dc#diff-1671fef50296cdc263fe784ea570d008c1e123d15c2efb9aea27554a82080aaaR143
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
This is a issue from v2.18.0+
Does this PR introduce a user-facing change?: