mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Allow users to expose ports from the pod to the host
we need to allow users to expose ports to the host for the purposes of networking, like a webserver. the port exposure must be done at the time the pod is created. strictly speaking, the port exposure occurs on the infra container. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/containers/storage"
|
||||
"github.com/cri-o/ocicni/pkg/ocicni"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
@ -96,7 +97,8 @@ type PodContainerInfo struct {
|
||||
|
||||
// InfraContainerConfig is the configuration for the pod's infra container
|
||||
type InfraContainerConfig struct {
|
||||
HasInfraContainer bool `json:"makeInfraContainer"`
|
||||
HasInfraContainer bool `json:"makeInfraContainer"`
|
||||
PortBindings []ocicni.PortMapping `json:"infraPortBindings"`
|
||||
}
|
||||
|
||||
// ID retrieves the pod's ID
|
||||
|
Reference in New Issue
Block a user