How to disable IPv6 inside a container/pod without effecting others and host OS in OpenShift

Solution Verified - Updated -

Issue

  • How do I disable or enable the IPv6 protocol inside a container or pod without effecting others?
  • I got below error When I run sysctl command to attempt to disable or enable IPv6 inside the container.

    sysctl: setting key "net.ipv6.conf.all.disable_ipv6": Read-only file system
    

Environment

  • OpenShift Container Platform 3.7 or later

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