github.com/fafucoder/cilium@v1.6.11/examples/policies/getting-started/cilium_dkr_demo_l7-policy-230817.json (about)

     1  [{
     2      "labels": [{"key": "name", "value": "l7-rule"}],
     3      "endpointSelector": {"matchLabels":{"id":"app1"}},
     4      "ingress": [{
     5          "fromEndpoints": [
     6              {"matchLabels":{"id":"app2"}}
     7          ],
     8          "toPorts": [{
     9              "ports": [{"port": "80", "protocol": "TCP"}],
    10              "rules": {
    11                  "http": [{
    12                      "method": "GET",
    13                      "path": "/public"
    14                  }]
    15              }
    16          }]
    17      }]
    18  }]