github.phpd.cn/cilium/cilium@v1.6.12/test/runtime/manifests/Policies-l3-policy.json (about) 1 [ 2 { 3 "endpointSelector": { 4 "matchLabels":{"id.httpd1":""} 5 }, 6 "ingress": [{ 7 "fromEndpoints": [ 8 {"matchLabels":{"reserved:host":""}}, 9 {"matchLabels":{"id.app1":""}} 10 ] 11 }] 12 }, 13 { 14 "endpointSelector": { 15 "matchLabels":{"id.httpd2":""} 16 }, 17 "ingress": [{ 18 "fromEndpoints": [ 19 {"matchLabels":{"reserved:host":""}}, 20 {"matchLabels":{"id.app1":""}}, 21 {"matchLabels":{"id.app3":""}} 22 ], 23 "toPorts": [{ 24 "ports": [ 25 {"port": "8000", "protocol": "tcp"}, 26 {"port": "80", "protocol": "tcp"}, 27 {"port": "8080", "protocol": "tcp"}, 28 {"port": "8080", "protocol": "udp"}] 29 }] 30 }] 31 }, 32 { 33 "endpointSelector": { 34 "matchLabels":{"id.app3":""} 35 }, 36 "egress": [ 37 { 38 "toEndpoints": [ 39 {"matchLabels":{"id.httpd2":""}} 40 ], 41 "toPorts": [{ 42 "ports": [ 43 {"port": "8000", "protocol": "tcp"}, 44 {"port": "80", "protocol": "tcp"}, 45 {"port": "8080", "protocol": "tcp"}, 46 {"port": "8080", "protocol": "udp"}] 47 }] 48 } 49 ] 50 }, 51 { 52 "endpointSelector": { 53 "matchLabels":{"id.app2":""} 54 }, 55 "egress": [{ 56 "toEndpoints": [ 57 {"matchLabels":{"id.httpd3":""}} 58 ] 59 }] 60 } 61 ] 62 63 64 65