- Create a Pod Security Policy within Rancher. Before you can assign a default PSP to an existing project, you must have a PSP available for assignment. For instruction, see Creating Pod Security Policies.
- Assign a default Pod Security Policy to the project’s cluster. You can’t assign a PSP to a project until one is already applied to the cluster. For more information, see .
Applying a Pod Security Policy
- From the main menu, select Projects/Namespaces.
- Find the project that you want to add a PSP to. From that project, select ⋮ > Edit.
-
- Apply the PSP to the project.
- Apply the PSP to any namespaces you add to the project later.
- Click Save.