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

     1  [{
     2    "labels": [{"key": "name", "value": "rule1"}],
     3    "endpointSelector": {"matchLabels": {"app": "kafka"}},
     4    "ingress": [{
     5      "fromEndpoints": [
     6        {"matchLabels": {"app": "empire-hq"}}
     7      ],
     8      "toPorts": [{
     9        "ports": [
    10          {"port": "9092", "protocol": "TCP"}
    11        ],
    12        "rules": {
    13          "kafka": [
    14              {"apiKey": "apiversions"},
    15              {"apiKey": "metadata"},
    16              {"apiKey": "produce", "topic": "deathstar-plans"},
    17              {"apiKey": "produce", "topic": "empire-announce"}
    18          ]
    19        }
    20      }]
    21    }]
    22  }]