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