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

Actually use 'dockerdContainerResources' to set resources on the dind… #273

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

thrawny
Copy link
Contributor

@thrawny thrawny commented Jan 25, 2021

… container

Fixes #242

Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks for fixing it @thrawny ☺️

@mumoshu mumoshu merged commit 6c64ae6 into actions:master Jan 29, 2021
@thrawny thrawny deleted the use-dockerdcontainerresources branch February 3, 2021 09:31
@martinm82
Copy link

martinm82 commented Sep 22, 2022

Hi all, we are encountering an issue where setting resource limits are not taken into account when using the DinD approach.

I am wondering whether the expected behaviour got broken by the following change:

#696

The original change did not had a condition when to use the resource limit whereas the commit above adds a condition in case the DockerdWithinRunnerContainer is null or false.

Even here someone was providing an example #277 (comment) which after the change in July won't work anymore.

@mumoshu
Copy link
Collaborator

mumoshu commented Sep 22, 2022

@martinm82 Hey! Which setup are you referring, runner container + the dind sidecar, or a hybrid container of runner + dind?

@mumoshu
Copy link
Collaborator

mumoshu commented Sep 22, 2022

AFAICS, the changes made in #696 is valid, because DockerdContainerResources makes sense only when you configured the runner to have the dind sidecar.

@martinm82
Copy link

martinm82 commented Sep 22, 2022

I am referring to runner + dind and had the impression that for this case the resources would as well be supported.

To me it seems that the example provided here #277 (comment) wouldn't work with the change from #696.

@mumoshu
Copy link
Collaborator

mumoshu commented Sep 22, 2022

@martinm82 Thanks! But I'm confused. #696 should have nothing to do with the example introduced in #277 (comment).
If I'm not missing anything, it should be #1383 if it's broken.
Probably you could instead use something like the below as a workaround that works today?

spec:
  template:
    spec:
      containers:
      - name: runner
        resources:
          # your resource requests/limits here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dockerdContainerResources doesn't set resource limits for docker container
3 participants