Would violate Podsecurity Warning deploying eventrouter in RHOCP 4.11
Issue
-
Deploying eventrouter following the documented steps a warning security message appears as below
$ oc process -f eventrouter.yaml | oc apply -n openshift-logging -f - ... Warning: would violate PodSecurity "restricted:latest": runAsNonRoot != true (pod or container "kube-eventrouter" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "kube-eventrouter" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost") deployment.apps/eventrouter created
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.11+
- Red Hat OpenShift Logging (RHOL)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.