ContainerServicePort

ContainerServicePort
ContainerServicePort

Specifices details of port exposed by service.

JSON Example
{
    "name": "string",
    "node_port": 0,
    "port": 0,
    "protocol": "string",
    "target_port": "string"
}
string
name
Optional

Specifies name of port within the service.

integer As int64 As int64
node_port
Optional
Constraints: minimum: 0 maximum: 65535

In case of Kubernetes container cluster, it is port on each node on which the service is exposed, when type of service is NodePort or LoadBalancer.

integer As int64 As int64
port
Optional
Constraints: minimum: 0 maximum: 65535

Specifies port exposed by the service

string
protocol
Optional

Specifies IP protocol of the port. e.g. TCP, UDP, SCTP.

Possible values are : TCP, UDP, SCTP,
string
target_port
Optional
Constraints: maxLength: 15

Specifies the number or name of port to access on container application instance by the container application. e.g. It is number or name of port to access of pod by service.