I want to run multiple actions rather than waiting one by one. The workaround would be to multiple deployments with Docker in Docker in Kubernetes, but I’m not sure how to assign automatic tokens. You know, so it can scale.
Please wait for Gitea 1.20.
We have merged a PR to retrieve tokens from the command line.
As it is new functionality, we didn’t backport it to 1.19.
With that, you can (at least with some work) register runners automatically.
No, I meant add CLI command to register runner tokens by techknowlogick · Pull Request #23762 · go-gitea/gitea · GitHub
Is there an actions runner that would execute containers directly as Kubernetes pods instead of using DIND? I know that the Gitlab runner can do this. This has the added benefit of allowing the runner itself to stay fairly small, but be able to scale up to the capacity of your Kubernetes cluster and easily parallelize tasks.
You can change the configuration file of runner to change the parallel tasks number. see Act Runner | Gitea Documentation
Unfortunately, that’s not what I’m looking for. I’m running Gitea in a Kuberentes cluster, and I’ll be running any runners in a cluster as well. Instead of the additional overhead of running DinD and limiting myself to tasks running on a single server/instance, I’d like the controller to be able to spin up tasks in pods directly on the cluster, bypassing the additional overhead of running DinD or some other solution. This would allow it to scale alongside my Kubernetes cluster instead of having to spin up multiple runners.
@NathanClayton, did you resolve this?
I am trying to understand how to deploy my gitea action runners in my k3s cluster.
I am fairly new to kubernetes, running a few “hello world” examples. I have act_runner working as a service successfully, but want to move to my cluster.
Which of the kubernetes example templates did you use, if any and besides setting the token, what else did you did? I was getting an error about a persistent mount claim - is that something you had to create in advance? I have been reading about that but still figuring it out. is that what mountPath maps to?
Thanks in advance.