hive-apps/projects/ingress-external/manifest/netpol.yaml

15 lines
268 B
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-external-only
namespace: ingress-external
spec:
podSelector: {}
policyTypes:
- Egress
egress:
- to:
- namespaceSelector:
matchLabels:
environment: external