Custom Pod Config for Kubernetes Runner

Our Gitlab server is not connected to the public network and is connected to Google Container Engine via VPN. I’ve managed to spin up the multi-runner pod itself with the hostNetwork option set so that it can check for builds, however when the build actually runs the container that is spun up to run it does not set the hostNetwork flag and therefore cannot check out the code for the build.

Is it possible to pass specify additional config to be fed to the pods spun up by the master pod?

In the end I had to dig into the Go source for gitlab-runner. Long story short, the only things that are configurable are those that they’ve explicitly made configuration options for, there is no flexibility in their k8s executor config.

I ended up compiling my own gitlab-runner image with the option enabled.

Relevant issue: