Skip to content

dsdk / v1.47 / EndpointPortConfig

Type Alias: EndpointPortConfig ​

EndpointPortConfig: object

Type declaration ​

NameTypeDescription
Name?string-
Protocol?"tcp" | "udp" | "sctp"-
PublishedPort?numberThe port on the swarm hosts.
PublishMode?"ingress" | "host"The mode in which port is published.


- "ingress" makes the target port accessible on every node, regardless of whether there is a task for the service running on that node or not. - "host" bypasses the routing mesh and publish the port directly on the swarm node where that service is running.
TargetPort?numberThe port inside the container.