-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Handle image digests in node status and image GC #25088
Conversation
On clusters where CI is run, there will be a lot of images. Every field in the API around images will take up significant cluster bandwidth. |
You only see data in |
In other words, this would only affect the CI clusters if the tests are pulling by images by digest. |
@yifan-gu how do image references work in rkt - are there both tags and immutable identifiers, or ... ? |
And note - if you are pulling by digest, the current code is broken On Tue, May 3, 2016 at 1:50 PM, Andy Goldstein notifications@github.com
|
The changes lgtm, but would want sign off from the GC or node side. |
@ncdc When the image is already on disk, we can reference it by the sha512, which is the image id here https://github.com/kubernetes/kubernetes/blob/v1.3.0-alpha.3/pkg/kubelet/rkt/image.go#L93 That's the hash of the image, so equivalent to the docker digest here, though we can't pull by that today... cc @philip @jonboulle |
I'd like to look at this PR before it gets merged. On Tue, May 3, 2016 at 4:42 PM, Yifan Gu notifications@github.com wrote:
|
Assigned to you so it's easier to keep track. |
I can split this into 2 PRs if that would make it easier - 1 for image GC, and 1 for node status. |
How would it grow unbounded? I can't see this list growing beyond
O(pods + pending-gc-images + admin-images)?
|
@smarterclayton It is not theoretically |
@vishh can we do that cap in a separate PR? |
Sure, that makes sense to me. |
@ncdc Yeah a separate PR makes sense. |
LGTM |
Start including Docker image digests in the node status and consider image digests during image garbage collection.
@vishh rebased, please take another look - thanks! |
GCE e2e build/test passed for commit f091ea5. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit f091ea5. |
Automatic merge from submit-queue |
Start including Docker image digests in the node status and consider image digests during image
garbage collection.
@kubernetes/rh-cluster-infra @kubernetes/sig-node @smarterclayton
Fixes #23917