Is there any Python API to list the Kubernetes job status


#1

Basically i am looking for script to identify the run time duration of the kubernetes job as i need the time duration for my sub-sequent operations.
Do let me know if anyone has idea on the Python API client for listing the details of Kubernetes Jobs.


#2

Have you taken a look at the python client https://github.com/kubernetes-client/python ?


#3

yep just looking at it. There’s so much of parsing required after getting the output.
Do you have any examples of interacting kubernetes resources via python request module (REST Api)?


#4

Unfortunately not. If I come across any I will let update you though.


#5

Thanks :slight_smile: