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

@ -2,3 +2,5 @@ apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: media name: media
labels:
name: media

View File

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