Files
schadensregulierung-pm/k8s/README.md
2026-09-27 06:49:46 +00:00

1.8 KiB

Kubernetes deployment (legacy)

SchadenPM soll als eigenständige Docker-Standalone-Anwendung betrieben werden und ist kein MoM-Modul. Dieses Verzeichnis ist Altbestand für einen optionalen Kubernetes-Betrieb. Für Neuinstallationen bevorzugt docker-compose.yml im Projektroot verwenden.

Das Manifest legt nur Namespace, Datenbank, Service und Deployment an. Routing über Ingress, Gateway oder Reverse Proxy muss projektspezifisch ergänzt werden.

Create or rotate the runtime secrets before applying the manifest:

kubectl create namespace schadenpm --dry-run=client -o yaml | kubectl apply -f -
kubectl label namespace schadenpm istio-injection=enabled --overwrite
kubectl -n schadenpm create secret generic schadenpm-secrets \
  --from-literal=db-password="$(openssl rand -base64 24)" \
  --from-literal=admin-password="Admin" \
  --dry-run=client -o yaml | kubectl apply -f -
kubectl apply -f k8s/schadenpm.yaml

The initial login is admin / Admin. The password is also stored in the Kubernetes secret:

kubectl -n schadenpm get secret schadenpm-secrets \
  -o jsonpath='{.data.admin-password}' | base64 -d; echo

The app only creates the initial admin when the username does not exist yet, so rotating ADMIN_PASSWORD later does not change an existing database user.

Current feature notes

  • Admin users can create and edit users in the Benutzer navigation item.
  • Projects can be assigned to one user. Admins see all projects; normal users only see assigned projects.
  • Customer addresses can be global for all customer projects or scoped to one project.
  • E-Mail OCR stores IMAP/IMAPS settings and imports unseen attachments when the mailbox check is triggered. Put #<Schadennummer> in the subject or body so the import can assign the attachment to the right project.