try networkpolicy

This commit is contained in:
2025-03-19 21:46:55 +01:00
parent 2768705251
commit 34552dc98b
2 changed files with 32 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- networkpolicy.yaml
- radarr-config-pvc.yaml
- sonarr-config-pvc.yaml
- sonarr-deploy.yaml

View File

@@ -0,0 +1,31 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-external
namespace: jellyfin
spec:
podSelector:
matchLabels:
app: radarr
policyTypes:
- Egress
egress:
- to:
- ipBlock:
cidr: 0.0.0.0/0
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-external
namespace: jellyfin
spec:
podSelector:
matchLabels:
app: sonarr
policyTypes:
- Egress
egress:
- to:
- ipBlock:
cidr: 0.0.0.0/0