Error when deploying Jenkins in OCP 4 fails with " cp: cannot create regular file /var/lib/jenkins/config.xml: Permission denied"

Solution Verified - Updated -

Issue

Creating a persistence Jenkins instance from Jenkins operator, the pod cannot create a regular file under /var/lib/jenkins/ with an error message:

Permission denied.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.6
  • Jenkins Operator 0.7.1

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