Drone-runner-kube: Default global serviceAccountName, nodeSelector and tolerations for pipeline pods

Hi,

I’d like to run all pipeline pods by default with certain parameters across all Github projects, ie. with a certain serviceAccountName, nodeSelector and tolerations. I’m thinking of global drone-runner settings similar to the default namespace that can be set via DRONE_NAMESPACE_DEFAULT env var.

I’d love to enforce some of these values globally, ie. I don’t want devs to overwrite these defaults in .drone.yml.

I found add rules file by sethpollack · Pull Request #18 · drone-runners/drone-runner-kube · GitHub, which looks like an interesting approach… but maybe few default env vars would do for now?

What are your thoughts on this?

Best,
Vojtech

You can set the default service account globally:
https://docs.drone.io/runner/kubernetes/configuration/reference/drone-service-account-default/

The referenced pull request will also be merged in the coming weeks. It has been planned for a while, but we haven’t had time to finalize the design. I hope this is something we can launch in conjunction with version 1.0 of the runner.

Awesome, thanks for sharing.

So are you guys thinking of global setting for nodeSelector and tolerations too? Or I guess the global rules, as referenced in the Pull Request, will do all I need.

Should I be watching that PR? Or is there any other way to subscribe for some updates?

Let me know if you need some help.

Best,
Vojtech