I'm running Locust in master-slave mode on k8s, I need to auto delete all locust pods when a test is completed. Any suggestion? Thank you.
Asked
Active
Viewed 152 times
0
-
You can try to make a script that runs at the end of locust test, that makes kubernetes `api` call to delete all pods in specific `namespace`. – Piotr Malec Apr 15 '20 at 14:08
1 Answers
1
Create a service and deployment type Job for master and slave. Job kind in k8s take care of deleting the pods upon completion.

Vijayasena A
- 26
- 1