EndpointSpec
Table of Contents
- $mode : string|null
- The mode of resolution to use for internal load balancing between tasks.
- $ports : array<string|int, EndpointPortConfig>|null
- List of exposed ports that this service is accessible on from the.
- getMode() : string|null
- The mode of resolution to use for internal load balancing between tasks.
- getPorts() : array<string|int, EndpointPortConfig>|null
- List of exposed ports that this service is accessible on from the.
- setMode() : self
- The mode of resolution to use for internal load balancing between tasks.
- setPorts() : self
- List of exposed ports that this service is accessible on from the.
Properties
$mode
The mode of resolution to use for internal load balancing between tasks.
protected
string|null
$mode
= 'vip'
$ports
List of exposed ports that this service is accessible on from the.
protected
array<string|int, EndpointPortConfig>|null
$ports
Methods
getMode()
The mode of resolution to use for internal load balancing between tasks.
public
getMode() : string|null
Return values
string|null —getPorts()
List of exposed ports that this service is accessible on from the.
public
getPorts() : array<string|int, EndpointPortConfig>|null
Return values
array<string|int, EndpointPortConfig>|null —setMode()
The mode of resolution to use for internal load balancing between tasks.
public
setMode(string|null $mode) : self
Parameters
- $mode : string|null
Return values
self —setPorts()
List of exposed ports that this service is accessible on from the.
public
setPorts(array<string|int, EndpointPortConfig>|null $ports) : self
Parameters
- $ports : array<string|int, EndpointPortConfig>|null