-
Notifications
You must be signed in to change notification settings - Fork 334
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 deprecated in k8s 1.25 #1449
Comments
At k8s 1.21+, it causes an annoying warning.
@joeholley, maybe you know, can this impact PROD, or it's okay to ignore this warning temporarily? |
Hi @joeholley and OM contributors, I found this issue pod-security-admission which contains a link to documentation of migrating PSP to Pod security admission controller. The thing I am still not getting is how do we actually use PSA controller in helm because there is an k8s apiVersion using which we create PSP objects open-match/install/helm/open-match/templates/podsecuritypolicy.yaml Lines 18 to 19 in 4d6da16
But I haven't yet came across similar implementation of PSA controller or maybe it is applied some different way. Though there are some resources which may be useful in resolving this issue are:
|
PodSecurityPolicy was removed in Kubernetes v1.25+, so installing via Helm fails (I'm guessing other methods of installation also fail). Since 1.25 (Aug 2022), this is no longer a nuisance warning, but an installation failure.
I'm using Docker Desktop on Windows 11 with the WSL2 engine and Kubernetes enabled via Docker Desktop. Kubernetes is v1.25.2. |
Hi @seesemichaelj. We are aware of it and have been migrating to Pod Security Admission Controller. Expect this to be resolved in the upcoming week. |
Awesome! Thanks! |
Hey @seesemichaelj has work been done on this one yet? |
@feliperyan I haven't done any work on it, but I'm not sure about the team's progress. |
Thanks for getting back to me @seesemichaelj , IMHO the tl;dr is: I'm no expert on Kubernetes security but I did some digging today and it seems like there are a few moving parts:
Happy holidays 🎄 ! |
Hey @syntxerror, @seesemichaelj :) How is the current status and progress of the transition from PSP to PSA? |
As of now, it seems we're waiting for a v1.8.0 release to get #1540 released. Since k8s 1.24.x is getting EOL/End of Support on some cloud providers, I went ahead and published a personal v1.7.1 that includes the latest changes from repo: |
What happened:
Installing on GKE using the currently supported k8s versions displays a deprecation notice for this resource type.
What you expected to happen
Need to update these to use the new PodSecurity admission controller.
https://github.com/kubernetes/enhancements/tree/master/keps/sig-auth/2579-psp-replacement
How to reproduce it (as minimally and precisely as possible):
Start a new GKE cluster, follow the OM installation instructions.
Cloud Provider/Platform (AKS, GKE, Minikube etc.):
GKE (although any platform using k8s will display this, it's a k8s deprecation)
Open Match Release Version:
Latest (altthough affects previous versions too)
Install Method(yaml/helm)::
Both
The text was updated successfully, but these errors were encountered: