Mount a custom volume to a Github job in containerMode: kubernetes
#3944
LeonoreMangold
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hello! My team struggled with this same issue a while back but found a solution when operating in k8s mode for integrating podman specifically. You have the right idea using the hook template env variable. What we did was define a PodTemplate inside of the configmap to define the spec.containers and spec.volumes objects. We referenced the runner-container-hooks ADRs as our guideline https://github.com/actions/runner-container-hooks/blob/main/docs/adrs/0096-hook-extensions.md |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello !
I wanted to mount a volume to Github ARC runners deployed with the mode Kubernetes for a rather standard use case, i.e. share cached data.
However, I surprisingly didn't find any way to mount a volume inside the workflow pod started alongside the runner pod.
It even tried using a workflow-extension to declare my volume, via a ConfigMap :
And in the Helm values for the runner :
I tried binding this volume in my job container with options, like that :
With this method, I could saw the volume declaration in the workflow pod description. However, the volume wasn't mount into the job container as if the container options weren't interpreted (I think I read somewhere that this is the case in Kubernetes mode).
So my question is, how is it possible that we cannot add any volume to a runner in Kubernetes mode ? Am I missing something or this is a really useful feature request ?
Don't hesitate to like this discussion if you struggled with the same problems.
ARC controller version : 0.9.3
Linked to #3508
Beta Was this translation helpful? Give feedback.
All reactions