openebs diskpools

This commit is contained in:
Philip Haupt
2025-11-23 18:15:48 +01:00
parent a9d58f95be
commit 7171b21abf
3 changed files with 63 additions and 2 deletions

25
test/network.yaml Normal file
View File

@@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: deny-repo-to-gitea
namespace: argocd
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: argocd-repo-server
policyTypes:
- Egress
egress:
# Beispiel: nur DNS erlauben (anpassen, falls du mehr brauchst)
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system
podSelector:
matchLabels:
k8s-app: kube-dns
ports:
- protocol: UDP
port: 53