18 lines
379 B
YAML
18 lines
379 B
YAML
apiVersion: "cilium.io/v2"
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: "rule1"
|
|
spec:
|
|
description: "L3-L4 policy to restrict deathstar access to empire ships only"
|
|
endpointSelector:
|
|
matchLabels:
|
|
org: empire
|
|
class: deathstar
|
|
ingress:
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
org: empire
|
|
toPorts:
|
|
- ports:
|
|
- port: "80"
|
|
protocol: TCP
|