github.phpd.cn/cilium/cilium@v1.6.12/test/runtime/manifests/Policies-kafka.json (about) 1 [{ 2 "endpointSelector": {"matchLabels":{"id.kafka":""}}, 3 "ingress": [ 4 {"fromEndpoints": [ 5 {"matchLabels": {"id.kafka": ""} 6 }] 7 }, 8 {"fromEndpoints": [ 9 {"matchLabels":{"reserved:host":""}}, 10 {"matchLabels":{"id.client":""}} 11 ], 12 "toPorts": [{ 13 "ports": [{"port": "9092", "protocol": "tcp"}], 14 "rules": { 15 "kafka": [ 16 {"apiKey": "metadata"}, 17 {"apiKey": "apiversions"}, 18 {"apiKey": "findcoordinator"}, 19 {"apiKey": "joingroup"}, 20 {"apiKey": "leavegroup"}, 21 {"apiKey": "syncgroup"}, 22 {"apiKey": "offsets"}, 23 {"apiKey": "offsetcommit"}, 24 {"apiKey": "heartbeat"}, 25 {"topic": "allowedTopic"} 26 ] 27 } 28 }] 29 }] 30 }] 31