How to add `NET_RAW` and `NET_ADMIN` capabilities for a pod in OpenShift 4?

Solution Verified - Updated -

Issue

  • How to enable the capabilities NET_RAW and NET_ADMIN for a pod running in the custom namespace in OpenShift?
  • Is it possible to enable custom capabilities for a pod in OpenShift?
  • When trying to add the SCC to the pod Deployment, the pod is not getting the capabilities for which this custom SCC was created.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content