Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-108206

[RFE] Support spec.replicas > 1 in podman play kube — allow multiple Deployment replicas

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • podman
    • None
    • Moderate
    • rhel-container-tools
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Feature request description

      Summary

      When a Deployment manifest specifies replicas: Npodman 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.
      • GitHub Issue (upstream): https://github.com/containers/podman/issues/26769

      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!

              bbaude@redhat.com Brent Baude
              mklaasse@redhat.com Marco Klaassen
              Container Runtime Eng Bot Container Runtime Eng Bot
              Container Runtime Bugs Bot Container Runtime Bugs Bot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: