Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add pod/commit subsource to support user to commit their container #19107

Closed
wants to merge 1 commit into from

Conversation

mqliang
Copy link
Contributor

@mqliang mqliang commented Dec 26, 2015

This PR add pod/commit subsource to support user to commit their image.

I didn't try to fully implement this(I even not update the auto generated files) since some discussion may needed.

If this looks good, I will implement the kubelet&kubectl part and implement the pod/push subsource to support user to push their container to registry.

Kubelet will support the commit/push functionality by some abstraction mediating the runtime(docker and rkt by now), so that it's runtime-agnostic.

It seems that rkt doesn't support commit&push by now(correct me if I am wrong), we can return a error message(indicating that the command is not supported) to user until rkt support commit/push.

Any comment are welcomed.

@k8s-bot
Copy link

k8s-bot commented Dec 26, 2015

GCE e2e build/test failed for commit 5447f62.

@k8s-github-robot k8s-github-robot added kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/new-api size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 26, 2015
@mqliang
Copy link
Contributor Author

mqliang commented Jan 14, 2016

@smarterclayton @davidopp @bparees @ironcladlou @bgrant0607 Could you please give me some feedback?

@mqliang mqliang changed the title Add pod/commit subsource to support user to commit their container WIP:Add pod/commit subsource to support user to commit their container Jan 14, 2016
@mqliang mqliang changed the title WIP:Add pod/commit subsource to support user to commit their container WIP: Add pod/commit subsource to support user to commit their container Jan 14, 2016
@bgrant0607
Copy link
Member

cc @derekwaynecarr

@k8s-bot
Copy link

k8s-bot commented Jan 14, 2016

GCE e2e build/test failed for commit 5447f62.

@bgrant0607
Copy link
Member

@mqliang Sorry, we have a huge backlog right now and the 1.2 deadline is fast approaching, so it may be a while before we can get to this.

Could you explain a bit more about how you expect this to be used? Does the container need to be running? Not running? If not running, what would prevent the container from being garbage collected?

Would imagePullSecrets also be used for push?

cc @ncdc

@mqliang
Copy link
Contributor Author

mqliang commented Jan 20, 2016

Does the container need to be running? Not running? If not running, what would prevent the container from being garbage collected?

I expect user commit/push their container manually, so the container need to be running. If user want push/commit their container automatically, we can add a pod life-cycle hook to support commit+push after container exits(which is proposed by @derekwaynecarr #14561).

Would imagePullSecrets also be used for push?

I am afraid not. I think we would have a ImagePushSecret required or something similar to be used for push.

I didn't try to fully implement this since some discussion may needed. I will make this open and get more feedback before the full implementation.

@derekwaynecarr
Copy link
Member

I also am interested in this capability but there are a number of side-effects that we need to account. For example, if an image is committed, do we guarantee that it will not be evicted for some period of time? How can I push a committed image to a registry in an environment where I don't have access to the node, etc. Can you put together a proposal document that starts to explore some of these questions that we can assess post kube 1.2?

@mqliang
Copy link
Contributor Author

mqliang commented Jan 20, 2016

@derekwaynecarr Ok, I will send a proposal ASAP.

@k8s-github-robot
Copy link

PR needs rebase

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 17, 2016
@fejta
Copy link
Contributor

fejta commented Apr 26, 2016

This PR has had no meaningful activity for multiple months. If it is still valid please rebase, push a new commit and reopen the PR. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants