github.com/form3tech-oss/cilium@v1.6.3/examples/policies/kubernetes/serviceaccount/serviceaccount-policy.json (about)

     1  [{
     2      "labels": [{"key": "name", "value": "k8s-svc-account"}],
     3      "endpointSelector": {"matchLabels": {"io.cilium.k8s.policy.serviceaccount":"leia"}},
     4      "ingress": [{
     5          "fromEndpoints": [
     6            {"matchLabels":{"io.cilium.k8s.policy.serviceaccount":"luke"}}
     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  }]