19 lines
385 B
YAML
19 lines
385 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: allow-from-namespaces
|
|
namespace: kubernetes-dashboard
|
|
spec:
|
|
podSelector: {}
|
|
ingress:
|
|
- from:
|
|
- podSelector: {}
|
|
- from:
|
|
- namespaceSelector:
|
|
matchLabels:
|
|
namespace: tools
|
|
podSelector:
|
|
matchLabels:
|
|
app: traefik
|
|
policyTypes:
|
|
- Ingress
|