Enable Pod Security Policy CheckingΒΆ
Procedure
Set the kubernetes kube_apiserver admission_plugins system parameter to include PodSecurityPolicy.
~(keystone_admin)]$ system service-parameter-add kubernetes kube_apiserver admission_plugins=PodSecurityPolicy
Apply the Kubernetes system parameters.
~(keystone_admin)]$ system service-parameter-apply kubernetes
View the automatically added pod security policies.
$ kubectl get psp $ kubectl describe <psp> privileged $ kubectl describe <psp> restricted