[containerMode: kubernetes] K8s Job/Hook implementation does not work with basic settings #160617
Replies: 5 comments 5 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: workThe 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+foundThen, 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.
-
| 🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as  2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the  Thank you for helping bring this Discussion to a resolution! 💬 | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use the
containerMode: kuberneteswith 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