You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3s/tests/e2e/amd64_resource_files/netpol-fail.yaml

20 lines
343 B

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