github.phpd.cn/cilium/cilium@v1.6.12/test/runtime/manifests/Policies-kafka-Role.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 {"role": "produce", "topic": "allowedTopic"}, 17 {"role": "consume", "topic": "allowedTopic"} 18 ] 19 } 20 }] 21 }] 22 }] 23