k8s support? #31

Open
opened 2023-03-01 04:52:38 +00:00 by yp05327 · 6 comments

The current behavior is that action jobs can run in docker containers or in the same env of the act runner.
The jobs and the act runner are running on the same (virtual)machine/container.
So I think maybe we can support running action jobs in k8s.
Then we can separate the jobs from act runner, and use cloud container PaaS such as Azure Container Instance to run jobs?

The current behavior is that action jobs can run in docker containers or in the same env of the act runner. The jobs and the act runner are running on the same (virtual)machine/container. So I think maybe we can support running action jobs in k8s. Then we can separate the jobs from act runner, and use cloud container PaaS such as Azure Container Instance to run jobs?
wolfogre added the
kind
feature
label 2023-03-01 05:04:51 +00:00

This requires writing a separate backend that handles K8S properly. I'm sure we won't mind adding it to act itself

This requires writing a separate backend that handles K8S properly. I'm sure we won't mind adding it to `act` itself
Contributor

If you're just looking for the runner to work in Kubernetes, take a look at #207. It's got a dind deployment spec in it that will work for you. Also #208 has a rootless container that can be deployed into Kubernetes without the dind mess.

If you're just looking for the runner to work in Kubernetes, take a look at #207. It's got a dind deployment spec in it that will work for you. Also #208 has a rootless container that can be deployed into Kubernetes without the dind mess.

@pj In regards to your comment, is this what needs to happen to remove the dependency on Docker?

@pj In regards to your comment, is this what needs to happen to remove the dependency on Docker?

@pj In regards to your comment, is this what needs to happen to remove the dependency on Docker?

I have no idea what you are talking about

> @pj In regards to your comment, is this what needs to happen to remove the dependency on Docker? I have no idea what you are talking about

My mistake @pj. I misread your response and believed that you were talking about removing Acts requirement on docker. Cheers anyways.

My mistake @pj. I misread your response and believed that you were talking about removing Acts requirement on docker. Cheers anyways.
Author

Update a related discussion(maybe): https://github.com/go-gitea/gitea/issues/29567

Update a related discussion(maybe): https://github.com/go-gitea/gitea/issues/29567
Sign in to join this conversation.
No Milestone
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/act_runner#31
No description provided.