drone / proposal

Drone Project Design Documents
13 stars 4 forks source link

Ability to influence pod and container names on Kubernetes. #19

Open jrouly opened 2 years ago

jrouly commented 2 years ago

When using drone-runner-kube, spawned worker pods have names like drone-92vh1e9hkicqtq8odvi3, and the containers inside them have similarly cryptic names (e.g. drone-kkj76c2asbkhyeg7jw2m).

These names are not especially helpful when trying to reverse associate a worker pod/container with a particular pipeline or stage, for example when debugging or tweaking resource consumption settings.

It's additionally difficult when monitoring the cluster with a tool like Prometheus, as there's no insight into which pipelines are behaving in certain ways. Although it is possible to see overall trends across all pipelines.

Some possible strategies to improve on this behavior: