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