- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.8k
Description
Feature request description
Currently, podman supports pods and deployments. While pod is the base element, K8S users will usually not deploy pods. Instead, they will deploy deployments for long lasting workloads and jobs for single shot operations.
When using systemd, the behavior of jobs seems to be a better fit as it will not have Podman monitor the pods but instead pass the monitoring and hence the handling of the restart policy to systemd.
For example, the supported valued for restartPolicy for containers in a Job are only Never or OnFailure.  So, a default restartPolicy of Never, with parallelism and completions set to 1 will result in propagating the exit status of the pod to systemd, letting it decide whether or not the service should be restarted (depending on the restart policy of the systemd unit)
Suggest potential solution
Passing a job to podman kube play will result in running the containers listed in the Pod specification
Have you considered any alternatives?
As explained, the user may use deployments or pods directly. But, it will not provide the same experience
Additional context
While the trigger for this feature request is Quadlet and systemd, podman will directly benefit from this added support as well