EndpointSpec

@Serializable
data class EndpointSpec(val mode: EndpointSpec.Mode? = Mode.VIP, val ports: List<EndpointPortConfig>? = null)

Properties that can be configured to access and load balance a service.

Parameters

mode

The mode of resolution to use for internal load balancing between tasks.

ports

List of exposed ports that this service is accessible on from the outside. Ports can only be provided if vip resolution mode is used.

Constructors

Link copied to clipboard
constructor(mode: EndpointSpec.Mode? = Mode.VIP, ports: List<EndpointPortConfig>? = null)

Types

Link copied to clipboard
@Serializable
enum Mode : Enum<EndpointSpec.Mode>

The mode of resolution to use for internal load balancing between tasks.

Properties

Link copied to clipboard
@SerialName(value = "Mode")
val mode: EndpointSpec.Mode?
Link copied to clipboard
@SerialName(value = "Ports")
val ports: List<EndpointPortConfig>?