Try to get network policy working
This commit is contained in:
parent
124b797e1a
commit
c6aee543e6
|
@ -1,4 +1,6 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: media
|
name: media
|
||||||
|
labels:
|
||||||
|
name: media
|
|
@ -9,9 +9,12 @@ spec:
|
||||||
ingress:
|
ingress:
|
||||||
- from:
|
- from:
|
||||||
# Allow all pods in this namespace
|
# Allow all pods in this namespace
|
||||||
- podSelector: {}
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
name: "media"
|
||||||
|
# - podSelector: {}
|
||||||
|
|
||||||
# Allow all pods with this label
|
# Allow all pods with this label
|
||||||
# - podSelector:
|
- podSelector:
|
||||||
# matchLabels:
|
matchLabels:
|
||||||
# needsMedia: 'yes'
|
needsMedia: "yes"
|
Loading…
Reference in New Issue