github.com/looshlee/cilium@v1.6.12/examples/demo/sw_policy_http.real.json (about)

     1  [{
     2      "endpointSelector": {"matchLabels":{"id.empire.deathstar":""}},
     3      "ingress": [{
     4          "fromEndpoints": [
     5            {"matchLabels":{"id.spaceship":""}},
     6            {"matchLabels":{"reserved:host":""}}
     7          ]
     8      }]
     9  },{
    10      "endpointSelector": {"matchLabels":{"id.spaceship":""}},
    11      "egress": [{
    12  	"toPorts": [{
    13  	    "ports": [
    14                  {"port": "80", "protocol": "tcp"}
    15              ],
    16  	    "rules": {
    17                  "HTTP": [
    18                      {
    19                          "method": "GET",
    20                          "path": "/v1/"
    21                      },{
    22                          "method": "POST",
    23                          "path": "/v1/request-landing/"
    24                      },{
    25                          "method": "PUT",
    26                          "path": "/v1/exhaust-port/",
    27                          "headers": ["X-Has-Force: true"]
    28                      }
    29  		]
    30  	    }
    31  	}]
    32      }]
    33  }]