Using persistent volume in BuildConfig on OpenShift Container Platform

Solution Verified - Updated -

Issue

  • We're facing an issue where, in a s2i build, the git clone is filling the /var/lib/origin filesystem on the node, leading to a nodefs event and triggering a pod eviction. /var/lib/origin is 5GB, and the git repository, including the .git directory, is taking around 90% of the storage once pulled. We are now wondering on whether it is possible to specify another build directory, for example use a persistent volume and doing a claim in the BuildConfig, where the git repository would be cloned ?

Environment

  • Red Hat OpenShift Container Platform 3.x and 4.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