Migrate from PodSecurityPolicy to Pod Security Admission before the upgrade
If your cluster still runs PodSecurityPolicy objects, you must replace them before you upgrade past 1.24, where the API is no longer served. The move is a policy mapping and namespace labelling exercise, and the effort depends mainly on how many custom PSP rules your cluster carries. A cluster that uses only default-style policies maps quickly to the built-in standards, while a cluster with many bespoke policies, per-user or per-group bindings through RBAC, and special cases for system workloads needs a longer review. Start by listing every PSP object, every ClusterRole or RoleBinding that grants the use verb on a policy, and every workload that depends on the admission outcome.
Pod Security Admission is the built-in controller that enforces the three Pod Security Standards, Privileged, Baseline and Restricted, one level per namespace. It does not evaluate arbitrary rules, so any PSP behavior outside those standards needs a different home, such as a policy engine, a documented exception process or a change to the workload itself. Map each PSP to the closest standard, then list the fields it allowed that the standard forbids. Confirm the exact field-level requirements in the Pod Security Standards page rather than working from memory, because the standards define what each level permits.
Before you enforce anything, label namespaces in audit and warn modes first, then review the audit logs and warnings against real workloads. Enforcement blocks pod creation, so a namespace that runs privileged system agents will fail on the first rollout if you skip this step. Confirm your audit log retention and who reviews the findings, because that review is where most of the effort in this migration sits.
Which PodSecurityPolicy controls map to Pod Security Admission
This table compares common PodSecurityPolicy fields with the Pod Security Standards levels that cover them. Read each row to see whether a field maps to Baseline, Restricted or nothing, and where the control must move to another mechanism. The main takeaway is that Pod Security Admission covers pod-level restrictions by namespace, while binding, defaults and custom rules need a different tool.
| PSP field | Closest Pod Security Admission equivalent | What to do with it |
|---|---|---|
| privileged: false | Baseline and Restricted both disallow privileged containers | Map directly. Confirm no workload needs privileged mode before enforcing Baseline. |
| hostPath volumes and allowedHostPaths | Baseline disallows hostPath volumes in most cases; Restricted disallows them entirely | Remove or justify each hostPath workload. Move approved host access to a dedicated namespace with a separate policy. |
| hostNetwork, hostPID, hostIPC | Baseline disallows host namespace sharing | Map directly. Review DaemonSets such as node agents, which often need host namespaces. |
| allowedCapabilities and requiredDropCapabilities | Baseline allows a default capability set; Restricted requires dropping ALL and adding only NET_BIND_SERVICE | Map to Restricted if workloads can drop capabilities. Test any app that needs added capabilities. |
| runAsUser and runAsNonRoot | Restricted requires runAsNonRoot and disallows root user IDs | Map directly. Check images that run as root by default and set runAsUser in the pod spec. |
| seccompProfile | Baseline disallows Unconfined seccomp; Restricted requires RuntimeDefault or Localhost | Map directly. Confirm the runtime supports the seccomp profile you set. |
| AppArmor annotations | Baseline blocks Unconfined AppArmor profiles; custom profiles are not checked beyond that | Map the unconfined case only. Enforce custom profile names with an admission policy engine. |
| allowedVolumes types | Restricted limits volume types to a short list of safe types | Map directly. Review CSI or projected volumes that fall outside the list. |
| allowPrivilegeEscalation | Restricted requires allowPrivilegeEscalation set to false | Map directly. Set it explicitly in every pod template. |
| RunAsUser, SELinux and FSGroup ranges | No equivalent range check in Pod Security Admission | Enforce with a policy engine or admission controls such as an OPA or Kyverno policy. |
| Binding to users or service accounts through RBAC | Not supported. Pod Security Admission applies per namespace label, not per user or service account | Keep RBAC for who may use a namespace. Use an admission policy for exceptions by identity. |
| Mutating defaults | Not supported. Pod Security Admission validates and never changes pod specs | Set defaults in Helm charts, templates or a mutating admission policy before the pod is admitted. |
How namespace labels and the three standards replace PSP bindings
Pod Security Admission applies a standard to a namespace, not to a service account. Each namespace carries labels of the form pod-security.kubernetes.io/<mode>: <level>, where the mode is enforce, audit or warn and the level is one of the three Pod Security Standards: Privileged, Baseline or Restricted. The enforce mode rejects pods that violate the level. The audit mode records violations in the audit log, and the warn mode returns a warning to the user who applies the object. You can also pin the standard to a specific Kubernetes version with a -version label, such as pod-security.kubernetes.io/enforce-version, so a later upgrade does not silently change the rules. Confirm the exact label keys and accepted values against the Pod Security Standards documentation before you write any manifests.
PSP was authorized through RBAC. A pod was admitted under a policy only when the requesting user or service account had the use verb on that policy, so a single PodSecurityPolicy could be granted to one team through a Role and RoleBinding. That binding model disappears with PSP. Pod Security Admission has no per-subject grant, so every pod in a labeled namespace is held to the same level. Teams must recreate their intended access by sorting workloads into namespaces by required privilege. Inventory which service accounts were allowed to run privileged or host-namespace pods, then decide whether those workloads move to a separate namespace with a weaker label or are rewritten to meet Baseline or Restricted. Remove the old PSP RoleBindings only after that mapping is complete, and record the decision for each workload owner.
Start with audit and warn set to the target level and enforce left unset or at a looser level. Apply labels namespace by namespace, then review audit log entries and warnings from deployment tools to find pods that would be rejected. Fix the manifests or move the workload to a namespace with a suitable level, then repeat until violations stop appearing in the logs for a representative period. Only then set enforce to the same level. Plan this sequence well before the cluster upgrade, because the audit log must be enabled and retained to give you any observations. Ask your platform owner where audit logs are stored and who reviews them, since that determines how reliable the observation step is.
Choosing a path by cluster state and workload risk
A cluster with one broad PodSecurityPolicy usually has a single workload pattern that the policy was written around. In most cases the likely target is Baseline for general namespaces, with Restricted added wherever the workloads can meet it. The main effort is finding the pods that quietly depended on the policy's permissions, since they only surface when enforcement starts.
- Likely target: Baseline for general namespaces, then Restricted where pods run as non-root, drop capabilities and set a seccomp profile.
- Manifest changes: set
runAsNonRoot: true, setallowPrivilegeEscalation: false, drop capabilities and setseccompProfiletoRuntimeDefaultwhere the image supports it. - Namespace labels: apply the
pod-security.kubernetes.io/warnandauditlabels first, then addenforceonce the reports are clean. - Hidden dependencies: review system namespaces and controllers, which often relied on the permissive policy without anyone noting it.
Before enabling enforce, confirm with each namespace owner which workloads failed in warn or audit mode and whether each failure has a fix or a documented exception.
When several PodSecurityPolicies are bound through RBAC, the first problem is mapping who receives which policy. Each policy usually corresponds to a group of workloads, so the replacement work starts with grouping workloads by the level they need. Pod Security Admission applies per namespace, which means pods with different requirements must be separated into different namespaces before labels are set.
- Inventory bindings: list each PodSecurityPolicy, the ClusterRole that grants
useon it, and every RoleBinding that attaches that role to a service account, user or group. - Group by level: sort workloads into Restricted, Baseline and exception groups, then move any pod that needs a different level into its own namespace.
- Plan exemptions: PSA exemptions are set in the admission configuration rather than in pod manifests, so decide which users, namespaces or runtime classes need them before rollout.
- Retire the old bindings: remove
usepermissions on PodSecurityPolicies once their workloads move, so the old policies cannot be reused by accident.
Before changing any labels, confirm that every namespace has one clear target level and a named owner who accepts the change.
Some workloads, such as network plugin agents, storage daemons, node monitoring and certain security agents, need privileged or host-level access that Baseline does not permit. Pod Security Admission provides the Privileged level for these cases, but it only sets a broad boundary. Controls beyond the three standard levels, such as allowed registries or permitted host paths, need a policy engine in the cluster.
- Likely target: Privileged for the small set of system namespaces that require it, with each exception documented and reviewed.
- Common blockers:
hostNetwork,hostPID,hostIPC,hostPathvolumes andprivileged: truecontainers are the usual reasons a pod fails Baseline. - Reduce the footprint: ask whether the agent needs the full host namespace, or whether a narrower capability, a different mount or a vendor setting can replace it.
- Policy engine for the rest: confirm whether the engine you run can express rules such as registry allow lists or hostPath prefixes, since PSA does not check those.
- Record exceptions: keep the namespace list, owner and reason under change control so auditors can trace each one.
Run a dry run against Baseline, list every pod that fails, and confirm each one has an owner and a written justification before enforcement begins.
Documented tools for auditing and labelling namespaces
Pod Security Admission is configured per namespace, so the migration starts with labels and ends with evidence that existing workloads pass the level you chose. The tools below are the documented paths for that work. None of them converts PodSecurityPolicy objects automatically, so each policy still needs to be mapped by hand and checked against the cluster.
Pod Security Admission reference
The Pod Security Admission documentation and the pod-security label reference define the three modes, enforce, audit and warn, and the version label that pins which Pod Security Standards release applies. Read them for the Kubernetes minor version your cluster runs, since label behavior can change between releases. Confirm which version label values your cluster accepts before you write any label automation.
Pod Security Standards docsNamespace labels with kubectl
Labels such as pod-security.kubernetes.io/enforce are applied to each namespace with kubectl label --overwrite, so the change is explicit and repeatable. Start with warn and audit on namespaces that carry workloads, and add enforce only after those modes are clean. Record which namespaces received which level in version control so the state can be reviewed.
Server-side dry-run for existing workloads
Applying a namespace label with --dry-run=server on the namespace shows whether the API server would reject existing pods at the chosen level, without enforcing it. The response lists warnings for pods that violate the level. Run this against every namespace that will receive enforce, and treat any warning on a controller template as a rejection waiting for the next rollout.
Audit and warn output
Audit annotations appear in the API server audit log, and warnings appear in the client response to kubectl or other tools that submit pods. Collect both for at least one full release cycle of your workloads, including CronJobs and batch jobs that run rarely. Confirm with your audit policy that the relevant events are recorded, because a missing audit rule makes a clean result look better than it is.
Mapping PSP rules by hand
No automated PSP-to-PSA converter is assumed here, so each PodSecurityPolicy rule needs a manual mapping to a Baseline or Restricted control. Compare your existing PSP bindings with the namespaces they cover, and list rules such as privileged containers, host namespaces and volume types. Confirm current tooling against the official docs for your Kubernetes version before relying on any third-party converter.
How the cutover runs from inventory to removing PSP
The sequence moves each namespace from PodSecurityPolicy enforcement to Pod Security Admission in a controlled order, so workloads keep running and the cluster can be upgraded past 1.24 with no PSP objects or controller settings left behind.
Inventory PodSecurityPolicies and their bindings
List every PodSecurityPolicy object, every RBAC Role and ClusterRole that grants the use verb on a policy, and every RoleBinding and ClusterRoleBinding that connects those roles to service accounts, users and groups. Record which namespaces each binding reaches and which workloads run under each service account. Confirm the PodSecurityPolicy admission plugin settings on the kube-apiserver. The step is done when every policy has a named list of bound namespaces and workloads, and nothing in the cluster depends on a policy that is not on that list.
Map each policy to a standard or a remainder
For each PodSecurityPolicy, compare its fields with the Privileged, Baseline and Restricted Pod Security Standards. Most policies that forbid privileged containers, host namespaces, hostPath volumes and added capabilities map to Baseline. Policies that also require non-root users, a seccomp profile and dropped capabilities map to Restricted. Anything that cannot be expressed by a standard, such as a specific volume allowlist or a custom SELinux option, becomes a remainder that needs a policy engine or a workload change. The output is a table of policy, target standard and remainders, reviewed by the platform and security owners.
Label namespaces with audit and warn in non-production
On a non-production cluster, apply the Pod Security Admission labels for the mapped standard to each namespace in audit and warn modes only, leaving enforce off. Audit mode records violations in the audit log, and warn mode returns a message to the user who applies a noncompliant pod. Keep the existing PodSecurityPolicy in place during this step so running workloads are not affected. The step is done when each namespace shows its intended labels and the audit log is receiving events from the namespaces you expect.
Review violations and classify them
Collect the audit events and warnings generated by existing workloads and by the deployment pipelines that apply them. Group violations by namespace, workload owner and cause, such as root containers, hostPath mounts or missing seccomp profiles. Separate workloads that must keep a privilege for a documented reason from workloads that simply inherited permissive defaults. Confirm with each owner which violations are intentional. The step is done when every violation has an owner and a decision: fix, exempt with a recorded reason, or accept the remainder.
Fix manifests and pipelines
Change the Deployments, StatefulSets, DaemonSets, Jobs and Helm charts that violate the target standard. Typical changes include setting runAsNonRoot, dropping capabilities, removing hostPath or host network use where it is not required, and declaring a seccomp profile. Update the CI/CD checks so that new manifests are linted against the same standard before they reach the cluster. The step is done when the audit and warn streams for the target namespaces show no unexplained violations, and every intentional exception is recorded.
Move to enforce namespace by namespace
Switch the enforce label on one namespace at a time, starting with low-risk namespaces and ending with those that run privileged system or data workloads. Keep audit and warn labels on so that any new violation is still visible. After each namespace is enforced, check that pods still schedule, that controllers can create replacements, and that alerts are quiet. The step is done when every namespace in scope enforces its standard and no pod creation has been blocked by the new admission check without a planned owner.
Run a parallel validation period on staging
Build or refresh a staging cluster that mirrors the production configuration, with the same namespace labels, admission settings and workload manifests. Run the full set of deployments, upgrades and scheduled jobs against it, with PodSecurityPolicy removed there first. Watch for pods rejected at creation, controllers stuck in retry loops and components that relied on policy-specific defaults. Ask the platform team to set how long the validation period lasts, because the researched facts do not give a duration. The step is done when a complete cycle of deployments and restarts passes without policy-related failures.
Remove PSP objects and controller configuration
Before the cluster is upgraded past 1.24, delete the PodSecurityPolicy objects, the RBAC roles and bindings that grant the use verb on them, and any kube-apiserver flags that enable the PodSecurityPolicy admission plugin. Confirm that no other object refers to the removed policies. Then restart the control plane and verify that pods still admit under the Pod Security Admission labels. The step is done when a search for PodSecurityPolicy objects and PSP-related bindings returns nothing, and the control plane reports no errors from the removed plugin.
Decommission the old mapping and document the result
Retire the policy-to-standard mapping sheet once the namespace labels are the only source of truth. Store the namespace labels, the list of documented exemptions and the audit log configuration in version control, with an owner for each exception. Keep a record of the audit trail that shows the cutover was completed, which the security and compliance teams can use as evidence. The step is done when the cluster's Pod Security labels are managed as code, every exemption has a named owner and review point, and the mapping sheet is archived.
Each namespace moves through audit, warn and enforce before PSP is removed
The cutover starts with an inventory of every PodSecurityPolicy and the workloads each one admits, then maps each policy to the Baseline or Restricted standard. Where a policy cannot be expressed in Pod Security Admission, a policy engine decides whether to cover the gap. Namespaces then run in audit and warn mode, so violations surface in logs and client output without blocking deployments. Each violation loops back to a manifest fix and a retest until the namespace is clean. Only then is enforcement switched on per namespace with pod-security.kubernetes.io/enforce, the PodSecurityPolicy objects are removed, and the cluster upgrade proceeds.
Decision path from policy inventory through audit, enforcement and PSP removal.
What drives the effort of replacing PodSecurityPolicy
This table compares the factors that enlarge or shrink a PodSecurityPolicy replacement, row by row, with the question to put to a partner for each. Read it before asking for a quote, because the number of bindings and privileged workloads usually matter more than the number of policies. The main takeaway is that a cluster with few custom rules and good staging coverage is far cheaper to move than one where the inventory is unknown.
| Driver | What increases the work | What reduces the work | What to ask a partner to quote |
|---|---|---|---|
| PSP objects and bindings | Many PodSecurityPolicies, overlapping RBAC bindings that grant use of each policy, and policies applied through service accounts across many namespaces | A small set of policies that map cleanly to Baseline or Restricted, with bindings already documented in version control | How the inventory of PSPs, roles and bindings will be produced and whether it covers every namespace |
| Namespaces and workloads needing privileged or hostPath access | Privileged containers, hostPath volumes, host networking or host PID use in many namespaces, especially system or vendor workloads | Workloads that already run unprivileged, or a short list of namespaces that can be isolated under the Privileged level | How each privileged workload is classified, who signs off each exception and how exceptions are recorded |
| Custom policy beyond the standards | Site-specific rules such as allowed volume types, specific seccomp profiles or AppArmor settings that Pod Security Admission does not express directly | Using only the built-in Baseline and Restricted levels with a few documented exceptions | Which custom rules must be preserved, which will be dropped, and how the remaining gaps will be covered |
| Need for a policy engine | Requirements for policy beyond namespace-level levels, such as custom rules, mutation or exception workflows | Pod Security Admission alone covering the required controls | Whether a policy engine is in scope, which engine is proposed and what its ongoing maintenance adds |
| Test coverage on staging | A staging cluster that does not mirror production namespaces, or no automated checks for workloads that fail admission | Staging with matching namespace labels and a repeatable deployment suite that exercises every workload class | What staging coverage is assumed, which workloads will be tested and what evidence of testing is delivered |
| Change control for workload owners | Many teams owning workloads, no agreed exception process, and rollouts that must be coordinated with owners across several time windows | A named owner per namespace, a standard exception request form and a schedule agreed before enforcement changes | Who coordinates with workload owners, how many change windows are assumed and who approves enforcement changes |
What usually breaks during the switch from PSP
Most failures in a PodSecurityPolicy to Pod Security Admission move come from changing enforcement before the cluster's actual workloads are known. The cards below cover the risks that tend to surface after enforce is set, on older clusters, or once the upgrade is already underway, with a prevention for each.
Workloads fail silently under enforce
Setting pod-security.kubernetes.io/enforce on a namespace blocks new pods that violate the level, but existing pods keep running until they restart, so breakage can appear days later during a routine rollout or node drain. Run the namespace with audit and warn set to the target level first, collect the violations, and only then move enforcement on. Check CronJobs and Jobs too, since their pods are created on a schedule.
Restricted breaks images that run as root
The Restricted standard requires pods to run as non-root, drop capabilities and set a seccomp profile, so many vendor images that default to UID 0 will be rejected. Inventory the running images and check their configured user before choosing Restricted for a namespace. Where a vendor image cannot run unprivileged, keep that namespace at Baseline and record the exception rather than weakening the whole cluster.
Leftover PSP bindings grant unintended access
PodSecurityPolicy was authorized through RBAC, using use verbs on the policy resource bound to service accounts or groups. Those RoleBindings and ClusterRoleBindings often stay in place after the policies are deleted, and in some setups they can be reused to grant permissions that were meant to be retired. Before removal, list every ClusterRole and Role that references podsecuritypolicies and delete the bindings in the same change as the policy.
Admission plugin missing on older clusters
On clusters that still run PodSecurityPolicy, the built-in Pod Security Admission controller may not be enabled in the API server configuration, and namespace labels then have no effect. Confirm the admission plugin list in the kube-apiserver configuration for each control plane node, and check the version-specific enablement for your release. Verify with a test pod in a labeled namespace that a violating pod is actually rejected.
Skipping audit and warn modes
Enforcing without audit or warn leaves owners unaware of which deployments will break, and the first signal becomes a failed deployment in production. Audit mode records violations in the audit log, and warn mode returns a message to the user applying the manifest. Set both alongside enforce, route audit events to your logging stack, and review them against the list of owning teams before the cutover date.
Upgrading before removal is verified
PodSecurityPolicy is removed in Kubernetes 1.25, so a cluster that upgrades past 1.24 with PSP objects still referenced will lose the enforcement those objects provided. Confirm that every namespace has the intended labels, that test pods behave as expected and that no PSP objects remain in use before starting the control plane upgrade. Follow the version skew order during the upgrade, and keep a rollback point for the control plane.
Version skew policyQuestions teams ask before migrating PodSecurityPolicy
How much effort does a PodSecurityPolicy to Pod Security Admission migration take?
Effort depends mostly on how many namespaces and workloads rely on PodSecurityPolicy, and how far those workloads sit from the Baseline and Restricted standards. A cluster with a few namespaces running standard images usually needs far less work than one where teams relied on custom PSPs for privileged pods, host networking, host paths or specific volume types. Cost components are the discovery work (listing which PSPs bind to which service accounts through RBAC), mapping each policy to a Pod Security Standards level, testing workloads in audit and warn modes, and fixing manifests that fail. Ask any partner for a quote that lists the namespace count, the number of PSP bindings, and which workloads need exceptions, since those inputs drive the figure.
What sets the timeline for moving off PodSecurityPolicy before an upgrade?
The timeline is set by the upgrade date your platform team needs and by how long application owners need to fix their manifests. Work that tends to take the longest is not the label change itself but the feedback loop: running namespaces in audit and warn modes, collecting violations, getting owners to change deployments, and repeating until enforcement is safe. Change windows, staging capacity and any release freezes also add time. Confirm the target Kubernetes version with your distribution vendor, and check the Kubernetes release and version skew pages so the migration finishes before the cluster moves past the version where PodSecurityPolicy is removed.
What must our team provide before a migration starts?
Your team should provide a current inventory of PodSecurityPolicy objects and their RBAC bindings, a list of namespaces with the workloads running in each, and a named owner for every application team. Staging access matters as much as the inventory: you need a cluster that mirrors production admission settings, with permission to set namespace labels and read audit and warning output. Also provide the kubeadm or distribution configuration, the admission controller settings in use, and any policy engine already installed. Missing owners are the most common source of delay, because someone has to accept the change for workloads that break under Restricted.
Can an internal platform team complete this migration alone?
Yes, a capable internal platform team can complete the migration alone if it has time, cluster-admin access in a non-production environment, and authority to ask application teams to change manifests. The work is mostly methodical: inventory, mapping, audit mode, remediation and enforcement. A partner is more useful when the policy set is large, when custom PSPs encode security decisions nobody documented, or when the same team must also handle an upgrade and workload fixes at once. Decide based on capacity and the number of unknowns, and ask any partner to name who does the policy mapping and who signs off on exceptions.
Can Pod Security Admission enforce our custom PodSecurityPolicy rules?
Not directly. Pod Security Admission enforces the three built-in Pod Security Standards (Privileged, Baseline and Restricted) per namespace, and it does not offer custom rule sets. Most PSP rules map onto those levels, but some do not, such as specific allowed volume lists, particular seccomp profiles, or fine-grained capability and host path allowances tied to named service accounts. Those rules need another mechanism, typically a policy engine installed as an admission webhook, or restructuring workloads so they fit the standards. Confirm which custom rules exist before you commit to the target design, because that choice changes the scope of the project.
What happens if we upgrade the cluster before finishing the migration?
If the cluster moves to a Kubernetes version where PodSecurityPolicy is no longer served, PSP objects stop being enforced, so pods that relied on them can be admitted without the intended checks or fail to be admitted, depending on how the namespaces were labeled and configured. The safer path is to finish the migration first, so Pod Security Admission labels and workload fixes are already in place when the API disappears. If an upgrade is forced, plan a rollback path and check the version skew rules, since the control plane must be moved one minor version at a time. Ask your team to confirm the exact removal version in the official release notes before scheduling.
What do audit and warn modes tell us before enforcement?
Audit and warn modes let you see which pods would violate a Pod Security Standard without blocking them. Audit mode records violations in the audit log, and warn mode returns a warning to the user who applies a manifest. Running both for a period gives application owners a list of exact fields to change, and it gives your security team evidence of where exceptions are needed. The effort lies in reviewing that output, sorting real violations from expected ones such as node-level agents, and deciding which namespaces need Privileged or Baseline instead of Restricted. Make sure audit logs are retained and reviewed, or the mode produces data nobody reads.
What your team needs to provide before work starts
The mapping work depends on three inputs from your team before anyone writes a label. First, export every PodSecurityPolicy object and the RBAC bindings that grant the use verb on them, usually with kubectl get psp -o yaml and kubectl get clusterrolebindings,rolebindings -A -o yaml. The policy objects show what each workload was allowed to do, and the bindings show which service accounts and users actually received that permission. A policy that nothing is bound to is a candidate for removal, not a standard to reproduce, and a binding you miss is a workload that will silently fail after the cutover.
Second, name an owner for every namespace and for the workloads that run in it. Pod Security Admission applies per namespace, so each label change needs someone who knows whether a DaemonSet needs host networking, whether a database needs a writable root filesystem, or whether a privileged build job is intentional. Owners also decide what happens to a workload that fails the Restricted standard: fix the manifest, move it to a namespace with a looser level, or accept a documented exception. Without named owners, the audit and warn results pile up with nobody empowered to act on them.
Third, provide a staging cluster that runs representative workloads, and a change window that a rollback can fit inside. Staging should carry the same admission configuration and the same PodSecurityPolicy setup as production, so the audit and warn output means something. Confirm the kube-apiserver minor version and whether the PodSecurityPolicy admission plugin is enabled in your environment, including any flags set on kubeadm or distribution-managed control planes. Ask your distribution vendor which Pod Security settings it sets by default, since a managed or packaged setup can differ from upstream defaults.
How DeployOpen works on this
DeployOpen scopes the PodSecurityPolicy removal as a fixed-scope engagement, starting from an inventory of your clusters and workloads. The work runs inside your own infrastructure, and each step ends with evidence your platform and security teams can review.
How we scope
- Inventory every PodSecurityPolicy object, its binding to ServiceAccounts and RBAC, and the namespaces it affects.
- Map each policy to Baseline or Restricted, and record which workloads need documented exceptions.
- Agree the written scope, deliverables and timeline with you before any cluster change starts.
How we build
- Apply namespace labels in audit and warn modes first, then review the logged violations with workload owners.
- Fix non-compliant pod specs, security contexts and volume settings in Git-managed manifests where possible.
- Test the enforce switch in a non-production cluster before changing production namespaces.
How we hand over
- Deliver the policy-to-standard mapping, namespace label inventory and exception register as written documents.
- Provide a runbook for the enforce cutover, rollback steps and the checks run before upgrading past 1.24.
- Walk your platform and security teams through the evidence so they can review it independently.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the migration closes.
- Confirm with your team which Kubernetes version and upgrade path your clusters follow before scheduling work.
- Re-check namespace labels and new workloads during later upgrades so exemptions do not drift.

