forked from containers/podman
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pick a random port on the host for play kube deployments
podman play kube started to expose the port of containers in k8s deployments on the same port on the host with containers#15946. However, that breaks once replicas are involved, as they would then bind to the same port on the host. With this commit, we change the default behavior so that podman will pick a random port for the container instead of using `containerPort`, but only if no `hostPort` is set. This fixes: containers#16765 Signed-off-by: Dan Čermák <dcermak@suse.com>
- Loading branch information
Showing
2 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters