azure-container-networking/npm/testpolicies/test-allow-all-to-k0-and-k1...

24 строки
422 B
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: deny-all-policy
namespace: testnamespace
spec:
policyTypes:
- Ingress
podSelector:
matchLabels:
app: "frontend"
matchExpressions:
- key: k0
operator: DoesNotExist
values: []
- key: k1
operator: In
values:
- v0
- v1
ingress:
- from:
- namespaceSelector: {}