Using persistent volume in BuildConfig on OpenShift Container Platform
Issue
- We're facing an issue where, in a
s2i
build, thegit clone
is filling the/var/lib/origin
filesystem on the node, leading to anodefs
event and triggering a pod eviction./var/lib/origin
is 5GB, and thegit
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 theBuildConfig
, where thegit
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.