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