Pod does not use a custom SCC as expected.
Issue
-
Created a test custom scc that is base on restricted scc with some modifications to make it more secure. However after which OCP always uses custom scc as the default scc even if the service account is not linked to the specified pod.
- Changed allowPrivilegeEscalation: from true to false.
- Add NET_RAW to the requiredDropCapabilities:
-
How to resolve such type of issue.
Environment
- Red Hat OpenShift Container Platform 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.