How to create a pod to run with privileged security context constraints in OpenShift 3?

Solution Unverified - Updated -

Issue

  • Getting permission issues when trying to deploy a docker image in OpenShift v3

  • # oc logs <pod> shows the following:

[ALERT] 257/153255 (10) : [/usr/local/sbin/haproxy.main()] Cannot create pidfile /var/run/haproxy.pid
  • How do I create a pod to run with privileged securitycontextconstraints

Environment

  • Red Hat OpenShift Enterprise 3.0.x

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