-
Notifications
You must be signed in to change notification settings - Fork 146
[question] clarification of image id in PodManifest #627
Comments
We do something similar in rktnetes.. @yifan-gu @euank can you help with On 16 June 2016 at 19:16, Brian Lalor [email protected] wrote:
|
What we do in rktnetes is basically a combination of The pod spec makes a suggestion for exactly this problem; it mentions that you could use an incomplete manifest as a deployment template where image ids are resolved before it is passed along to the executor. I do think it makes sense to keep the discovery+fetching and execution distinct, which that id being required helps express. Perhaps there is room for the idea of a |
Thank you, @euank and @jonboulle!
Is it intended that this be a feature of the executor, or part of a tool that runs outside of it? I see a use for a reified I think |
It's a matter of whether we want to do image fetching with a pod manifest. At this point, I don't see strong reason why not. |
I'd love to see this implemented in rkt, but it'd be impossible to validate such a |
hmm, is this not clear with the current wording?
When I first added this functionality I did actually have a separate |
I want to work on extending Nomad's support for rkt, and would like to pave the way for other ACEs. Most of rkt's command-line arguments can be replaced by a PodManifest document. My thought is that instead of having Nomad build up a string of arguments to be passed to the rkt binary, it could instead generate a PodManifest and use rkt's
--pod-manifest
argument instead. The thing I'm struggling with is that the PodManifest requires an element inapps
to have theimage
object'sid
property specified. But the only way I see within rkt to resolve an image's ID is to userkt fetch
. Furthermore, rkt will not create a pod from a PodManifest if the image doesn't exist in the local store, even if the image ID is provided along with the name and labels.If instead a PodManifest did not require the image ID and was able to drive image discovery using the provided name and labels, it seems to me that the PodManifest could be a truly portable input to an ACE.
I haven't fully internalized the appc spec, but could someone help me understand the purpose of the PodManifest, and what an appropriate workflow to determine the image ID should be in the confines of the current spec? I don't expect the command-line interface to an ACE to be standardized or captured in the spec, but the PodManifest very nearly achieves the goal of being a portable definition of a pod.
The text was updated successfully, but these errors were encountered: