apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: deny-all-policy
namespace: testnamespace
spec:
podSelector:
matchLabels:
app: "backend"
ingress:
- from:
- podSelector:
app: frontend
policyTypes:
- Ingress