github.com/looshlee/cilium@v1.6.12/examples/policies/l7/http/l7_multi.json (about) 1 [{ 2 "labels": [{"key": "name", "value": "fancyrule"}], 3 "endpointSelector": {"matchLabels": {"app": "service"}}, 4 "ingress": [{ 5 "fromEndpoints": [ 6 {"matchLabels": {"env": "prod"}} 7 ], 8 "toPorts": [{ 9 "ports": [ 10 {"port": "80", "protocol": "TCP"} 11 ], 12 "rules": { 13 "http": [ 14 { 15 "method": "GET", 16 "path": "/public" 17 } 18 ] 19 } 20 }] 21 }] 22 },{ 23 "labels": [{"key": "name", "value": "fancyrule"}], 24 "endpointSelector": {"matchLabels": {"env": "prod"}}, 25 "egress":[{ 26 "toPorts": [{ 27 "ports": [ 28 { "port": "80", "protocol": "TCP"} 29 ], 30 "rules": { 31 "http": [ 32 { 33 "method": "POST", 34 "host": "^external-service.org$" 35 } 36 ] 37 } 38 }] 39 }] 40 }]