feat(home-assistant): Plex integration netpols

This commit is contained in:
JJGadgets
2025-11-26 19:59:05 +08:00
parent ce418fc925
commit f2559690f4
2 changed files with 19 additions and 0 deletions

View File

@@ -38,6 +38,10 @@ spec:
- matchLabels:
io.kubernetes.pod.namespace: go2rtc
app.kubernetes.io/name: go2rtc
- toEndpoints:
- matchLabels:
io.kubernetes.pod.namespace: media
app.kubernetes.io/name: plex
- toFQDNs:
# HACS
- matchPattern: "*.hacs.xyz"

View File

@@ -160,3 +160,18 @@ spec:
- matchExpressions:
- key: fuckoff.home.arpa/plex
operator: DoesNotExist
networkpolicies:
app:
controller: app
policyTypes: [Ingress, Egress]
rules:
ingress:
- from:
- podSelector:
matchLabels:
app.kubernetes.io/name: home-assistant
namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: home-assistant
ports:
- port: *port