12 lines
200 B
YAML
12 lines
200 B
YAML
kind: NetworkPolicy
|
|
apiVersion: networking.k8s.io/v1
|
|
metadata:
|
|
namespace: default
|
|
name: deny-from-other-namespaces
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
ingress:
|
|
- from:
|
|
- podSelector: {}
|