github.com/looshlee/cilium@v1.6.12/examples/policies/kubernetes/clustermesh/cross-cluster-policy.yaml (about)

     1  apiVersion: "cilium.io/v2"
     2  kind: CiliumNetworkPolicy
     3  metadata:
     4    name: "allow-cross-cluster"
     5    description: "Allow x-wing in cluster1 to contact rebel-base in cluster2"
     6  spec:
     7    endpointSelector:
     8      matchLabels:
     9        name: x-wing
    10        io.cilium.k8s.policy.cluster: cluster1
    11    egress:
    12    - toEndpoints:
    13      - matchLabels:
    14          name: rebel-base
    15          io.cilium.k8s.policy.cluster: cluster2