github.phpd.cn/cilium/cilium@v1.6.12/test/runtime/manifests/ct-test-policy.json (about)

     1  [{
     2      "endpointSelector": {"matchLabels":{"id.curl":""}},
     3      "egress": [{
     4  	    "toPorts": [{
     5  		    "ports": [{"port": "80", "protocol": "tcp"}]
     6  	    }]
     7      }],
     8      "labels": ["id=curl"]
     9  },{
    10      "endpointSelector": {"matchLabels":{"id.server":""}},
    11      "ingress": [{
    12          "fromEndpoints": [
    13  	    {"matchLabels":{"reserved:host":""}},
    14  	    {"matchLabels":{"id.client":""}}
    15  	]
    16      }],
    17      "labels": ["id=server"]
    18  },{
    19      "endpointSelector": {"matchLabels":{"id.client":""}},
    20      "egress": [{
    21          "toEndpoints": [
    22              {"matchLabels":{"id.server":""}}
    23          ]
    24      }],
    25      "labels": ["id=egress-from-client-to-server"]
    26  },{
    27      "endpointSelector": {"matchLabels":{"id.httpd":""}},
    28      "ingress": [{
    29          "fromEndpoints": [
    30  	    {"matchLabels":{"id.curl":""}}
    31  	],
    32  	"toPorts": [
    33  	    {"ports": [{"port": "80", "protocol": "tcp"}]}
    34  	]
    35      }],
    36      "labels": ["id=httpd"]
    37  },{
    38      "endpointSelector": {"matchLabels":{"id.httpd":""}},
    39      "ingress": [{
    40          "fromEndpoints": [
    41  	    {"matchLabels":{"id.curl2":""}}
    42  	],
    43  	"toPorts": [
    44  	    {"ports": [{"port": "8080", "protocol": "tcp"}]}
    45  	]
    46      }],
    47      "labels": ["id=httpd"]
    48  },{
    49      "endpointSelector": {"matchLabels":{"id.httpd_deny":""}},
    50      "ingress": [{
    51          "fromEndpoints": [
    52  	    {"matchLabels":{"id.curl":""}}
    53  	],
    54  	"toPorts": [
    55  	    {"ports": [{"port": "9090", "protocol": "tcp"}]}
    56  	]
    57      }],
    58      "labels": ["id=httpd_deny"]
    59  }]