k3s/tests/e2e/amd64_resource_files/netpol-fail.yaml
Manuel Buil 487d08ad11 Add a netpol test for podSelector & ingress type
Signed-off-by: Manuel Buil <mbuil@suse.com>
2022-10-26 17:52:28 +02:00

20 lines
343 B
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: test-network-policy
namespace: default
spec:
podSelector:
matchLabels:
k8s-app: nginx-app-clusterip
policyTypes:
- Ingress
ingress:
- from:
- podSelector:
matchLabels:
app: whatever
ports:
- protocol: TCP
port: 80