NetworkPolicyEgressRule

An egress rule allowing outbound traffic from selected pods to specified destinations on specified ports. An empty to list allows traffic to all destinations.

Container OrchestrationKubernetesLoad BalancingNetworkingService Discovery

Properties

Name Type Description
to array Allowed traffic destinations.
ports array Ports to which the egress traffic is allowed.
View JSON Schema on GitHub

JSON Schema

kubernetes-services-networkpolicyegressrule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/NetworkPolicyEgressRule",
  "title": "NetworkPolicyEgressRule",
  "type": "object",
  "description": "An egress rule allowing outbound traffic from selected pods to specified destinations on specified ports. An empty to list allows traffic to all destinations.",
  "properties": {
    "to": {
      "type": "array",
      "description": "Allowed traffic destinations.",
      "items": {
        "$ref": "#/components/schemas/NetworkPolicyPeer"
      }
    },
    "ports": {
      "type": "array",
      "description": "Ports to which the egress traffic is allowed.",
      "items": {
        "$ref": "#/components/schemas/NetworkPolicyPort"
      }
    }
  }
}