azure-container-networking/npm/testpolicies/allow-backend-to-frontend.yaml

17 строки
301 B
YAML

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