github.com/looshlee/cilium@v1.6.12/examples/policies/kubernetes/namespace/isolate-namespaces.json (about)

     1  [
     2     {
     3        "ingress" : [
     4           {
     5              "fromEndpoints" : [
     6                 {
     7                    "matchLabels" : {
     8                       "k8s:io.kubernetes.pod.namespace" : "ns1"
     9                    }
    10                 }
    11              ]
    12           }
    13        ],
    14        "endpointSelector" : {
    15           "matchLabels" : {
    16              "k8s:io.kubernetes.pod.namespace" : "ns1"
    17           }
    18        }
    19     },
    20     {
    21        "endpointSelector" : {
    22           "matchLabels" : {
    23              "k8s:io.kubernetes.pod.namespace" : "ns2"
    24           }
    25        },
    26        "ingress" : [
    27           {
    28              "fromEndpoints" : [
    29                 {
    30                    "matchLabels" : {
    31                       "k8s:io.kubernetes.pod.namespace" : "ns2"
    32                    }
    33                 }
    34              ]
    35           }
    36        ]
    37     }
    38  ]