Skip to content

Support spec.replicas > 1 in podman play kube — allow multiple Deployment replicas #26769

@marcoklaassen

Description

@marcoklaassen

Feature request description

Summary

When a Deployment manifest specifies replicas: N, podman play kube should honor that and create N pods—rather than silently limiting it to one.

Motivation & References

  • As of Podman 4.4, pods created via play kube are capped at one replica: “limits the replica count to 1”.
  • Issue #16765 describes pod startup failures due to port binding conflicts when attempting duplicates.
  • PR #16766 introduces random port assignment to mitigate such conflicts.
  • PR #17082 warns users when attempting multi‑replica deployment with play kube.

Proposal

  • Allow play kube to create multiple pods when spec.replicas > 1.
  • Handle port conflicts gracefully—e.g., through randomized host ports or offset mapping.
  • Maintain or improve user feedback: explicitly warn if scaling isn't feasible.
  • Add example use cases or tests in CI/docs to demonstrate correct behavior.

Benefits

Better aligns podman play kube with real‑world Kubernetes workflows and streamlines local/demo usage—reducing manual steps and improving reliability.

Thank you for considering this feature!

Suggest potential solution

A clear and concise description of what you want to happen.

Have you considered any alternatives?

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.kubetriagedIssue has been triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions