<p>I'm building a test automation tool that needs to launch a set of tests, collect logs and results. My plan is to build container with necessary dependency for test framework and launch them in Kubernetes. </p>

<p>Is there any application that abstracts complexity of managing the pod lifecycle and provides a simple API to achieve this use-case preferably through API? Basically my test scheduler need to deploy a container in kubernetes, launch a test and collect log files at the end. </p>

<p>I already looked at Knative and kubeless - they seem to be complex and may over-complicate what I'm trying to do here.</p>

bram
<p>Based on information you provided all I can recomend is kubernetes API itself.</p>

<p>You can create a pod with it, wait for it to finish and gather logs. If thats all you need, you don't need any other fancy applications. Here is a <a href="https://kubernetes.io/docs/reference/using-api/client-libraries/" rel="nofollow noreferrer">list of k8s client libraries</a>. </p>

<p>If you don't want to use client libraries you can always use REST api. </p>

<p>If you are not sure how to use REST api, run kubectl commands with <code>--v=10</code> flag for debug output where you can see all requests between kubectl and api-server as a reference guide.</p>

<p>Kubernetes also provided detailed <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/" rel="nofollow noreferrer">documentation for k8s REST api</a>.</p>
