Commit graph

5 commits

Author SHA1 Message Date
Felix Wolf 5524b24dcb fix: use localpath for nextclouds own pvc 2026-04-04 18:57:41 +02:00
Felix Wolf 72b39586b6 fix(nextcloud): Enable persistence to survive pod restarts
Nextcloud requires a persistent /var/www/html to retain installation
state (config.php, version.php, installed apps) across restarts.
Without it, every restart triggers the setup wizard. Uses local-path
2Gi PVC with Recreate strategy since the volume is RWO.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 18:45:12 +02:00
Felix Wolf 0d60c04e2d feat: Centralize Nextcloud hostname configuration
Introduces a YAML anchor to define the Nextcloud host once, improving consistency.
Applies the hostname anchor to ingress, probes, and Nextcloud's host setting.
Adds `overwritehost` and `overwrite.cli.url` to Nextcloud's `config.php` for correct URL generation when behind a reverse proxy.
2026-04-04 18:28:11 +02:00
Felix Wolf c85ee51590 feat: Adds Nextcloud pre-install hook and ArgoCD ignore rules
Introduces a `before-starting` hook that creates a `CAN_INSTALL` file, signaling Nextcloud to proceed with its installation process.

Configures ArgoCD to ignore differences in `batch/Job` resources' `spec.selector` and `spec.template.metadata.labels`. This prevents spurious out-of-sync states caused by Kubernetes mutating these fields on job creation, improving application synchronization stability.
2026-04-04 18:17:32 +02:00
Felix Wolf 1b57f76543 feat: Adds Nextcloud application
Deploys Nextcloud with an FPM-alpine image and Caddy sidecar for web serving.
Integrates an external CloudNativePG cluster for PostgreSQL database.
Utilizes an external Valkey instance for caching.
Configures S3-compatible object storage for file data.
Includes an initialization job to create admin and Valkey secrets.
Sets up Ingress for external access with TLS via cert-manager.
2026-04-04 18:13:21 +02:00