charts
charts copied to clipboard
Replace PodSecurityPolicy with new policy API
The Kubernetes project will deprecate PodSecurityPolicy starting with 1.21.0, and then remove it entirely starting at 1.25.0. See:
- https://github.com/kubernetes/kubernetes/pull/97171
This issue tracks the replacement of the existing kured PodSecurityPolicy implementation with its replacement. This KEP is an indication of where things are (probably) going:
- https://github.com/kubernetes/enhancements/pull/2582
👍
Should we do this for 1.7.0, 1.8.0, or above? 1.7.0 supports 1.19 to 1.21 (and therefore will fall under the deprecated environment versions).
However, if there is no clear winner (as path to implementation), and that the winner is not backported to 1.19 or below, I suppose we should NOT move to a new solution anytime soon, else it will break our existing users.
PS: I am sorry if I am repeating what might be obvious here, it's just for reference/understanding for any contributor.
Above. The new API doesn't yet exist. :) So this is just a long-term tracking issue to ensure that the kured project is ready.
Yup that's what I understood, thanks for confirming.
I am marking this PR as "good first issue" for two reasons:
- It indeed isn't too hard to implement :)
- With this tag, our issue expiring bot will not expire this issue.
This issue was automatically considered stale due to lack of activity. Please update it and/or join our slack channels to promote it, before it automatically closes (in 7 days).
The new PodSecurity API is in beta now (with 1.23.0): https://kubernetes.io/blog/2021/12/09/pod-security-admission-beta/
HI! I'm new to this repo and would like to work on this, issue, I've gone through some of the code but couldn't find the exact file in which I have to make changes, could anyone please help me by telling the exact file path in which I have to make changes.
Please have a look at the helm chart: https://github.com/kubereboot/charts/tree/main/charts/kured/templates. I think there should be no references in this repo.
When Kubernetes 1.28 is out in about ten days and we release Kured 1.14.0 (with built-in k8s 1.27 support), we drop support for Kubernetes 1.25 which was the last release with PodSecurityPolicies, so we are safe to remove them from the chart.
The "Pod Security Standards" are mostly about the securityContextof the container, which can be configured in the helm-chart, so I think we don't really need to add some replacements on our side.
Thoughts on this? @jackfrancis @evrardjp