23 lines
457 B
YAML
23 lines
457 B
YAML
apiVersion: "cilium.io/v2"
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: "rule1"
|
|
spec:
|
|
description: "L7 policy to restrict access to specific HTTP call"
|
|
endpointSelector:
|
|
matchLabels:
|
|
org: empire
|
|
class: deathstar
|
|
ingress:
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
org: empire
|
|
toPorts:
|
|
- ports:
|
|
- port: "80"
|
|
protocol: TCP
|
|
rules:
|
|
http:
|
|
- method: "POST"
|
|
path: "/v1/request-landing"
|