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

     1  apiVersion: "cilium.io/v2"
     2  kind: CiliumNetworkPolicy
     3  metadata:
     4    name: "isolate-ns1"
     5    namespace: ns1
     6  spec:
     7    endpointSelector:
     8      matchLabels:
     9        {}
    10    ingress:
    11    - fromEndpoints:
    12      - matchLabels:
    13          {}
    14  ---
    15  apiVersion: "cilium.io/v2"
    16  kind: CiliumNetworkPolicy
    17  metadata:
    18    name: "isolate-ns1"
    19    namespace: ns2
    20  spec:
    21    endpointSelector:
    22      matchLabels:
    23        {}
    24    ingress:
    25    - fromEndpoints:
    26      - matchLabels:
    27          {}