Skip to content

[Feature]: Kube Play: add support for Job #17011

@ygalblum

Description

@ygalblum

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

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.kubelocked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions