azure-container-networking/npm/testpolicies/allow-app-backend-to-app-fr...

19 строки
363 B
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-backend-to-frontend-on-port-8000-policy
namespace: testnamespace
spec:
policyTypes:
- Ingress
podSelector:
matchLabels:
app: frontend
ingress:
- from:
- podSelector:
matchLabels:
app: backend
ports:
- port: 8000