awslabs/benchmark-ai

[Executor] Dangling resources on failed kubectl apply

Aperta

#943 aperta il 14 ott 2019

 (0 commenti) (0 reazioni) (0 assegnatari)Python (6 fork)auto 404
buggood first issueservice:executor

Metriche repository

Star
 (19 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

The executor creates the kubernetes resources by executing a kubectl apply against a generated kubernetes resource file. Sometimes, these files can contain multiple resource definitions (Jobs, Pods, Services, Roles, etc.). This means that, while the command itself can fail (exit with non-zero), some of the (valid) kuberenetes resources would still be created.

We should issue a kubectl delete in case there is a failure. To ensure we don't leave any dangling resources in case of any failure.

Guida contributor