Class Port (1.36.4)

Port(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a network port in a container.

Attribute

NameDescription
container_port int
The number of the port to expose on the pod's IP address. Must be a valid port number, between 1 and 65535 inclusive.

Methods

Port

Port(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a network port in a container.