Control pod security admission synchronization
You can enable automatic pod security admission synchronization for most namespaces.
System defaults are not enforced when the security.openshift.io/scc.podSecurityLabelSync field is empty or set to false. You must set the label to true for synchronization to occur. You can use the --overwrite flag to reverse the effects of the pod security label synchronization in a namespace.
|
|
Namespaces that are defined as part of the node payload have pod security admission synchronization disabled permanently. These namespaces include:
If an Operator is installed in a user-created |
-
To enable pod security admission label synchronization in a namespace, set the value of the
security.openshift.io/scc.podSecurityLabelSynclabel totrueby running the following command:$ oc label namespace <namespace> security.openshift.io/scc.podSecurityLabelSync=true