-
Notifications
You must be signed in to change notification settings - Fork 4.7k
cmd: ex: standalone docker garbage collector #16796
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
Conversation
can you add a yaml demonstrating how you would run this on cluster? |
/unassign |
@derekwaynecarr added the example daemonset spec and serviceaccount with required scc |
/unassign Missing too much context to review 😄 |
/retest flake #16414 |
examples/dockergc/dockergc-ds.yaml
Outdated
resources: | ||
requests: | ||
memory: 30Mi | ||
cpu: 100m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we size less? maybe 50m? how did you get to this number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copied it from node-exporter 😄
Perform garbage collection to free space in docker storage | ||
|
||
If the OpenShift node is configured to use a container runtime other than docker, | ||
docker will still be used to do builds. However OpenShift itself will not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/will/may
} | ||
|
||
func doGarbageCollection(ctx context.Context, client *dockerapi.Client, options *dockerGCConfigCmdOptions, rootDir string) error { | ||
capacityBytes, usageBytes, err := getRootDirInfo(rootDir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we do a log at each gc interval?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be good to have something that logs before gathering root dir info
@sjenning just a few nits. |
running out of disk space on a cri-o server would be a bug. /kind bug |
|
||
dockerapi "github.com/docker/engine-api/client" | ||
dockertypes "github.com/docker/engine-api/types" | ||
dockerfilters "github.com/docker/engine-api/types/filters" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as long as these dependencies 1) already exist and 2) aren't ones we're trying to delete as part of the oc split (I don't think they are... @deads2k?), hanging this under experimental doesn't bother me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as long as these dependencies 1) already exist and 2) aren't ones we're trying to delete as part of the oc split (I don't think they are... @deads2k?), hanging this under experimental doesn't bother me
We do want to see this leave as part of oc
. Is this command logically an oc adm
command? If so, then openshift ex
is ok and we'll move it to oc ex
later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved discussion to irc. agree w/ @deads2k that we may want to handle this similar to kubernetes-namespace-reservation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/retest |
/test extended_conformance_install_update |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: derekwaynecarr, sjenning The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test extended_conformance_install_update |
flake #16870 |
@sjenning: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest Please review the full test history for this PR and help us cut down flakes. |
Automatic merge from submit-queue (batch tested with PRs 16667, 16796, 16960, 16965, 16894). |
This implements a standalone docker GC daemon for use in OpenShift when using a non-docker runtime (e.g. cri-o) but using docker for builds.
https://trello.com/c/iO9d9R1w
@derekwaynecarr @vikaschoudhary16