Bug 1297914

Summary: [RFE] Provide --volumes-from capability in kubernetes
Product: OKD Reporter: Jake Hunsaker <jhunsaker>
Component: StorageAssignee: Steve Watt <swatt>
Status: CLOSED DEFERRED QA Contact: Jianwei Hou <jhou>
Severity: low Docs Contact:
Priority: high    
Version: 3.xCC: aos-bugs, bchilds, eparis, jkrieger, jsafrane
Target Milestone: ---Keywords: Extras, FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-03 22:04:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jake Hunsaker 2016-01-12 18:42:29 UTC
Proposed title of this feature request
 
Provide a capability in kubernetes that mimics the function of --volumes-from in base docker.
 
 
What is the nature and description of the request?
 
Customer would like to be able to provision pods that use data-only containers as data sources similar to the functionality provided by docker's --volumes-from.

Why does the customer need this? (List the business requirements here)
 
In their own words:

------8<-----------
We wanted this capacity becouse we were thinking put the developments (jares files) in several dockers and the operating system and application server in others dockers, and connect both.

The reason of this is becouse the jares files are changed very frequently but the operating system and application server not. In order to modify the jares' dockers without modify the dockers of the operating system and application server we were thinking use data volumen container for jares files and show them to the dockers with the operating system and application server like a path were they could load the jares files.

------8<-----------


How would the customer like to achieve this? (List the functional requirements here)

Probably a configuration option in a pod definition that allows a volume to come from another container/pod instead of a PV/PVC
 
Is there already an existing RFE upstream or in Red Hat bugzilla?
 
No

Does the customer have any specific timeline dependencies?

Not specifically, though account team notes this is a high priority request from the customer.
 
Would the customer be able to assist in testing this functionality if implemented?

Most likely.

Comment 3 Jan Safranek 2016-02-04 09:24:55 UTC
Reassigning to OpenShift Origin, it needs to be fixed there first there and then it will automatically emerge in RHEL.

Comment 4 Steve Watt 2016-05-22 18:53:16 UTC
Might I suggest you discuss this approach with your customer: 

1 - Create an NFS share or GlusterFS volume and copy the Jar files into it
2 - Create a READWRITEMANY PV that points to the share/volume that you created with the Jars
3 - Create a READWRITEMANY claim that gets bound to the PV in step 2.

Then use the claim (which contains the jars) and you can mount it into multiple containers within your Pod (or even across the pods in the same project). I believe this will satisfy their requirement. 

If this provides the solution move the status to CLOSED.

Comment 5 Bradley Childs 2018-01-03 22:04:50 UTC
Closing this bug since its very old and other solutions proposed.