r/devops • u/gqtrees • Sep 02 '26
Discussion github windows self hosted runners (on k8s). Is it supported?
trying to find a ref architecture that is widely recommended for deploying windows runners on k8s. From what I read ARC doesn't support it still? if not what are my options?
1
Upvotes
6
u/WarpBuild ☀️ founder -- warpbuild.com Sep 02 '26
I believe it is technically supported but requires a complex setup using Windows nodes on k8s. In practice, I don't think many companies use it.
2
u/valenvb Sep 02 '26
Definitely not supported OOTB, especially if you also want to do Windows containers (GH has amazingly poor support for Windows containers despite being owed by MS). We made a slew of customizations to runner-container-hooks to let us run the runner on Linux and then spawn the -workflow pod on a Windows node. It has to do a bunch of file copying and path rewriting to make it work; not pretty, but it’s been surprisingly stable so far
3
u/gevorggalstyan Sep 02 '26
GitHub's current documentation separates the runner from ARC support. Windows is a supported OS for the self-hosted runner application, but the official ARC repository's Windows guide is explicitly for the legacy
RunnerDeploymentAPI. That setup needs Windows worker nodes and a custom Windows runner image because ARC does not provide a default one.For the current runner scale sets, I would not treat Windows on ARC as a standard reference architecture. If Kubernetes is not a hard requirement, Windows self-hosted VMs are the simpler supported boundary. If you need custom autoscaling, GitHub's Runner Scale Set Client supports Windows while leaving the infrastructure lifecycle to you. If you stay on Kubernetes, plan to own the mixed Linux and Windows node pools, custom image, and pod specification.
Sources: legacy ARC Windows guide and GitHub's self-hosted runner reference.
2
u/According-Glove-7663 Sep 02 '26
Did find a good way to run k8s windows yet so I ended up just spinning up a window box and running the ci runner agent directly on it.
2
u/ForkMeJ Sep 02 '26
I'd sanity check whether you need Kubernetes for the Windows runners, because that cuts down your options pretty quickly. ARC has been Linux-first for a while, and Windows container support plus runner lifecycle management is where this usually gets awkward. If the jobs really need Windows, I'd start with a small autoscaled pool of Windows VMs and keep runner registration and cleanup explicit instead of forcing it into k8s. It's less elegant on paper, but a lot easier to own when jobs stick, patching falls behind, or a host needs to be replaced.
1
u/Eulavvalue Nov 02 '26
We’ve been using GitHub Actions with Windows pods through k8s ARC with great success for >1.5 years now but we do have amazing Ops folks. I’d say biggest hurdle is getting Windows nodes into your k8s cluster and functioning correctly. If you can do that then it’s a matter of getting k8s ARC running. The bare bones container image for a Windows runner isn’t crazy.
- base on windowsservercore 20xx (OS must match Windows node OS IIRC)
- set powershell default
- set workdir to C:/actions-runner
- install GitHub runner
- copy start.ps1 in
- set CMD that runs start.ps1
start.ps1 is just a file that executes
Write-Host “Starting GitHub Actions Runner…
.\run.cmd
The primary downside is if you need to perform docker commands the ability to perform DinD in a Windows pod on a k8s Windows node isn’t ideal. We spin up Linux based pods that run as DinD services and our Windows containers use those if they need to perform docker commands but there are limitations to what you can do IIRC.
1
u/sup_bruh_1 Sep 08 '26
arc definitely doesn't support windows containers. latchkey might be worth a look