NetworkPolicyPort describes a port to allow traffic on
new()
withPort(port)
The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers.
withProtocol(protocol)
The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.