Endpoint Port Config
constructor(name: String? = null, protocol: EndpointPortConfig.Protocol? = null, targetPort: Int? = null, publishedPort: Int? = null, publishMode: EndpointPortConfig.PublishMode? = PublishMode.INGRESS)
Parameters
name
protocol
target Port
The port inside the container.
published Port
The port on the swarm hosts.
publish Mode
The mode in which port is published.