Mixins

networkPolicyPort

NetworkPolicyPort describes a port to allow traffic on

Constuctors

Functions
  • withPort

    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

    withProtocol(protocol)
    

    The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.