Getting the default Kubernetes job template
First, run:
prefect kubernetes manifest flow-run-job
This will generate:
apiVersion: batch/v1
kind: Job
metadata:
# labels are required, even if empty
labels: {}
spec:
template:
spec:
containers: # the first container is required
- env: [] # env is required, even if empty
name: prefect-job
Then, you can provide custom inline customizations as shown in the examples linked in the repo: