[containerMode: kubernetes] K8s Job/Hook implementation does not work with basic settings #2438
Replies: 4 comments 4 replies
-
I am having the exact same experience. I upgraded my helm installation of the chart, and even re-built my custom runner image from their latest image. When my initial runner comes up, it doesn't see like the volume is mounted to it: volumes:
- ephemeral:
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: gp2
volumeMode: Filesystem
name: work volumeMounts:
- mountPath: /runner/_work
name: work The PVC is there.. but in k9s I see runner@k8s-container-mode:/$ ls -la /runner/_work/
total 24
drwxr-xr-x. 3 runner docker 4096 Apr 15 23:37 .
drwxrwxrwx. 8 runner docker 4096 Apr 15 23:38 ..
drwx------. 2 runner docker 16384 Apr 15 23:37 lost+found Then, I kick off my workflow, and it does seem to mount the volume for a moment, as I can briefly list it's contents: runner@k8s-container-mode:/$ ls -la /runner/_work/
total 40
drwxr-xr-x. 7 runner docker 4096 Apr 16 00:34 .
drwxrwxrwx. 8 runner docker 4096 Apr 15 23:38 ..
drwxr-xr-x. 3 runner runner 4096 Apr 16 00:34 _PipelineMapping
drwxr-xr-x. 7 runner runner 4096 Apr 16 00:34 _actions
drwxr-xr-x. 6 runner runner 4096 Apr 16 00:34 _temp
drwx------. 2 runner docker 16384 Apr 15 23:37 lost+found
drwxr-xr-x. 3 runner runner 4096 Apr 16 00:34 <redacted> But then immediately after: runner@k8s-container-mode:/$ ls -la /runner/_work/
ls: cannot open directory '/runner/_work/': Permission denied |
Beta Was this translation helpful? Give feedback.
-
@jacksonporter Did you ever get this figured out? |
Beta Was this translation helpful? Give feedback.
-
Can you try adding fsGroup?: spec:
securityContext:
fsGroup: 1000
nodeSelector: (Note that I'm not sure if it will work or not because I'm a little bit confused on the differences between actions-runner-controller and gha-runner-scale-set-controller so not sure if you can add securityContect on the former) |
Beta Was this translation helpful? Give feedback.
-
FYI: I ran into this same error after it had previously been working. After reverting all the changes that had been made to the set up since it had been working it turned out to be bottlerocket hosts that were the issue. Just changing the hosts back to vanilla amazon Linux 2 it all started working again. |
Beta Was this translation helpful? Give feedback.
-
I am trying to use the
containerMode: kubernetes
with the following CRD and get the following error on job execution:CRD:
Error on
Initialize containers
:Follow-up error on
Complete runner
:I am running in EKS with the EBS CSI driver. The job pod gets spun up, the runner fails, and the failed job pod stays running/dangling there. Not sure what I am doing wrong, would love some pointers!
Beta Was this translation helpful? Give feedback.
All reactions