Scale Intelligence■ Docs
Docs / The model / NetworkPolicy

NetworkPolicy.

One allowed flow between two parties on the private network; everything not declared is denied

Figure 1NetworkPolicyspecified
NETWORKPOLICYdefinition at platform scopea role, the ingress, the load balancer, or the internetfrom_roletexta role, a store, the collector, or the internetto_roletextportcountprotocolenum:tcp|udpwhy the flow exists, in one sentencereasontextpoints at no other object
NetworkPolicy is a definition at platform scope. The drawing shows its fields and the objects that they point at.
kind
definition
scope
platform
key
the source and the destination
store
postgres
family
network

Fields#

fieldtyperequirednote
from_roletextyesa role, the ingress, the load balancer, or the internet
to_roletextyesa role, a store, the collector, or the internet
portcountyes
protocolone of tcp | udpyes
reasontextyeswhy the flow exists, in one sentence

Routes that use it#

No route takes or returns NetworkPolicy directly. The record holds it, and the objects that point at it reach it.