Try to get network policy working

This commit is contained in:
SeanOMik 2023-04-04 02:31:40 -04:00
parent 124b797e1a
commit c6aee543e6
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
2 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: media
name: media
labels:
name: media

View File

@ -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"