feat(k8s/firefly): add Firefly III with PostgreSQL and backups

This commit is contained in:
2026-04-21 23:35:41 +03:00
parent 271a42e80b
commit f65bc8505b
12 changed files with 480 additions and 7 deletions

View File

@@ -0,0 +1,95 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-ingress
namespace: firefly
spec:
podSelector: {}
policyTypes:
- Ingress
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-ingress-controller
namespace: firefly
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: firefly-iii
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: traefik
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-app-to-db
namespace: firefly
spec:
podSelector:
matchLabels:
app: firefly-db
policyTypes:
- Ingress
ingress:
- from:
- podSelector:
matchLabels:
app.kubernetes.io/name: firefly-iii
ports:
- port: 5432
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-backup-to-db
namespace: firefly
spec:
podSelector:
matchLabels:
app: firefly-db
policyTypes:
- Ingress
ingress:
- from:
- podSelector:
matchLabels:
app: firefly-backup
ports:
- port: 5432
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-backup-egress
namespace: firefly
spec:
podSelector:
matchLabels:
app: firefly-backup
policyTypes:
- Egress
egress:
- ports:
- port: 53
protocol: UDP
- port: 53
protocol: TCP
- ports:
- port: 8888
protocol: TCP
- ports:
- port: 443
protocol: TCP
- ports:
- port: 5432
protocol: TCP
to:
- podSelector:
matchLabels:
app: firefly-db