mirror of
https://github.com/nold360/hive-apps
synced 2024-11-14 17:56:38 +00:00
16 lines
268 B
YAML
16 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
|
||
|
|