github.com/fafucoder/cilium@v1.6.11/examples/policies/l7/dns/dns.json (about)

     1  [
     2    {
     3      "endpointSelector": {
     4        "matchLabels": {
     5          "app": "test-app"
     6        }
     7      },
     8      "egress": [
     9        {
    10          "toEndpoints": [
    11            {
    12              "matchLabels": {
    13                "app-type": "dns"
    14              }
    15            }
    16          ],
    17          "toPorts": [
    18            {
    19              "ports": [
    20                {
    21                  "port": "53",
    22                  "protocol": "ANY"
    23                }
    24              ],
    25              "rules": {
    26                "dns": [
    27                  { "matchName": "cilium.io" },
    28                  { "matchPattern": "*.cilium.io" }, 
    29                  { "matchPattern": "*.api.cilium.io" }
    30                ]
    31              }
    32            }
    33          ]
    34        },
    35        {
    36          "toFQDNs": [
    37            { "matchName": "cilium.io" },
    38            { "matchName": "sub.cilium.io" },
    39            { "matchName": "service1.api.cilium.io" },
    40            { "matchPattern": "special*service.api.cilium.io" }
    41         ]
    42        }
    43      ]
    44    }
    45  ]