infra/stacks/nextcloud
Viktor Barzin ee159b02ba nextcloud: disable Keel auto-upgrades
Keel bumped library/nextcloud :32.0.3-apache → :32.0.9-apache on
2026-05-26 19:42 UTC. The new image needs `occ upgrade` to migrate
the DB schema, which Keel does not run, so Nextcloud landed in
maintenance mode (needsDbUpgrade=true) and stayed there for ~22h —
external probes saw 503, ExternalAccessDivergence kept firing.

Disable Keel for this workload:
- Drop the `keel.sh/enrolled=true` label from the namespace so
  Kyverno's `inject-keel-annotations` policy no longer matches.
- Layer `keel.sh/policy=never` label + annotation onto the
  Helm-managed Deployment via `kubernetes_labels` /
  `kubernetes_annotations` (the chart at 8.8.1 doesn't expose
  Deployment-level commonLabels/commonAnnotations). Keel reads the
  annotation; the label is defense-in-depth for the Kyverno
  exclude rule should the namespace ever get re-enrolled.

Verified: Keel logged `image no longer tracked, removing watcher`
within seconds of the annotation landing, and `tg plan` is clean.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 18:37:05 +00:00
..
.terraform.lock.hcl Woodpecker CI deploy [CI SKIP] 2026-05-24 11:31:53 +00:00
backend.tf Woodpecker CI deploy [CI SKIP] 2026-05-24 11:31:53 +00:00
chart_values.yaml nextcloud: expose PVE NFS roots + /anca-elements via Files External 2026-05-24 11:27:26 +00:00
external_storage.tf nextcloud(external_storage): add per-mount enableSharing option 2026-05-24 11:39:16 +00:00
main.tf nextcloud: disable Keel auto-upgrades 2026-05-27 18:37:05 +00:00
providers.tf nextcloud: expose PVE NFS roots + /anca-elements via Files External 2026-05-24 11:27:26 +00:00
secrets [ci skip] Move Terraform modules into stack directories 2026-02-22 14:38:14 +00:00
terragrunt.hcl migrate all secrets from SOPS to Vault KV 2026-03-14 17:15:48 +00:00