EndpointPortConfig

@Serializable
data class EndpointPortConfig(val name: String? = null, val protocol: EndpointPortConfig.Protocol? = null, val targetPort: Int? = null, val publishedPort: Int? = null, val publishMode: EndpointPortConfig.PublishMode? = PublishMode.INGRESS)

Parameters

name
protocol
targetPort

The port inside the container.

publishedPort

The port on the swarm hosts.

publishMode

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.

Constructors

Link copied to clipboard
constructor(name: String? = null, protocol: EndpointPortConfig.Protocol? = null, targetPort: Int? = null, publishedPort: Int? = null, publishMode: EndpointPortConfig.PublishMode? = PublishMode.INGRESS)

Types

Link copied to clipboard

Values: TCP,UDP,SCTP

Link copied to clipboard

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.

Properties

Link copied to clipboard
@SerialName(value = "Name")
val name: String?
Link copied to clipboard
@SerialName(value = "Protocol")
val protocol: EndpointPortConfig.Protocol?
Link copied to clipboard
@SerialName(value = "PublishedPort")
val publishedPort: Int?
Link copied to clipboard
@SerialName(value = "PublishMode")
val publishMode: EndpointPortConfig.PublishMode?
Link copied to clipboard
@SerialName(value = "TargetPort")
val targetPort: Int?