Add debug functionality to a runner worker pod on Kubernetes
Problem(s) to solve:
-
When troubleshooting we need the pod to be available even after the job is completed to go to shell and check the files.
-
Customer needs a suitable way to inspect CI runner job pods in the event that a job fails. They are migrating to GitLab from Jenkins (where they have more control over the runner lifecycle) and are looking for an equivalent mechanism.
Requirements for solution:
Devops engineering should have a setting in gitlab ci to set the pod availability after the job is complete so that we can check the logs.
Brainstorm
- Can we leverage the prestop-k8s-lifecycle-hook as a starting point for solving this problem?
Implementation proposal (engineering)
-
{placeholder for implementation proposal details.}
Edited by Darren Eastman