EnableDefaultDeny determines whether this policy configures the
subject endpoint(s) to have a default deny mode. If enabled,
this causes all traffic not explicitly allowed by a network policy
to be dropped.
If not specified, the default is true for each traffic direction
that has rules, and false otherwise. For example, if a policy
only has Ingress or IngressDeny rules, then the default for
ingress is true and egress is false.
If multiple policies apply to an endpoint, that endpoint's default deny
will be enabled if any policy requests it.
This is useful for creating broad-based network policies that will not
cause endpoints to enter default-deny mode.
egress
boolean
Whether or not the endpoint should have a default-deny rule applied
to egress traffic.
ingress
boolean
Whether or not the endpoint should have a default-deny rule applied
to ingress traffic.