github.com/fafucoder/cilium@v1.6.11/examples/minikube/sw_l3_l4_policy.yaml (about) 1 apiVersion: "cilium.io/v2" 2 kind: CiliumNetworkPolicy 3 description: "L3-L4 policy to restrict deathstar access to empire ships only" 4 metadata: 5 name: "rule1" 6 spec: 7 endpointSelector: 8 matchLabels: 9 org: empire 10 class: deathstar 11 ingress: 12 - fromEndpoints: 13 - matchLabels: 14 org: empire 15 toPorts: 16 - ports: 17 - port: "80" 18 protocol: TCP