Skip to content

Add support for adding volumeMounts outside of the shared workdir on k8s #46

@nielstenboom

Description

@nielstenboom

Hey, thanks for the work on this project, we've recently switched to the Actions Runner Controller with some runners that use the containerMode: kubernetes and works well so far!

There is one thing that would be nice to have added, which is the functionality to in some way mount volumes to the spun up pod by this hook.

The use case for this is as follows:
We have to run python tests on a machine that have a GPU, so we run our tests in a nvidia/cuda:11.3.1-devel-ubuntu18.04 container from a Github action. In this action a lot of packages get pulled from the internet and then installed. Today I wanted to add some caching for this by adding volumeMounts to the spun up pod, but after digging I found out that this does not seem possible (please correct me if I'm wrong, but I couldn't find a way).

Would it be possible to add support in some way to be able to mount other volumes to the pod that gets spun up?

Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions