Zurück zum Hub

cargo.ayedo.cloud/ayedo/k8s/nextcloud 0.1.0 k8sapp AGPL-3.0

Self-hosted file sharing and collaboration on Kubernetes with S3 primary storage, external Postgres and Valkey

polycrate block pull cargo.ayedo.cloud/ayedo/k8s/nextcloud:0.1.0

Nextcloud

Nextcloud ist die selbst gehostete Plattform für Dateien, Teilen und Collaboration. Dieser Block installiert das offizielle Helm-Chart auf Kubernetes, mit externem Postgres, Valkey (statt Bitnami-Redis) und optionalem S3 als Primary Storage.

Konfigurationsbeispiele: polycrate block examples nextcloud.

Voraussetzungen

  • Kubernetes plus StorageClass (Default der Cluster-Provisioner, oft Longhorn)
  • Externes PostgreSQL (typisch CloudNativePG) — der Block startet kein In-Cluster-Postgres
  • Valkey oder Redis für File-Locking und Cache (typisch Hub-Block cargo.ayedo.cloud/ayedo/k8s/valkey)
  • Ingress-Controller und cert-manager ClusterIssuer
  • admin.password, postgresql.password und bei S3 die Access Keys in der Instanz-Config (nicht in block.poly)

Install

blocks:
  - name: nextcloud
    from: cargo.ayedo.cloud/ayedo/k8s/nextcloud:0.1.0
    kubeconfig:
      from: k8s
    config:
      namespace: nextcloud
      host: nextcloud.example.com
      admin:
        username: admin
        password: ""  # secrets.poly
      postgresql:
        hostname: nextcloud-db-rw.nextcloud.svc.cluster.local
        username: nextcloud
        password: ""
        database: nextcloud
      external_redis:
        enabled: true
        host: valkey-master.nextcloud.svc.cluster.local
        existing_secret:
          enabled: true
          secret_name: valkey-auth
          password_key: password
      s3:
        enabled: true
        host: s3.example.com
        bucket: nextcloud
        access_key: ""
        secret_key: ""
        ssl: true
        port: "443"
        region: eu-west-1
        use_path_style: true
      ingress:
        enabled: true
        class: nginx
        tls:
          enabled: true
          letsencrypt:
            issuer: letsencrypt-production
polycrate run nextcloud install

UI: https://<host>. Admin-User kommt aus admin.username / admin.password.

Storage

Pfad Default
App (/var/www/html) PVC, RWO, 8Gi
Dateien optional S3 (s3.enabled) als Primary Object Store
Cache / Locks externes Valkey/Redis, nicht das Bitnami-Subchart

Bei s3.enabled: true liegen Nutzerdateien im Bucket. Das PVC hält App-Code, Config und Apps.

Hochverfügbarkeit

supports_ha: true. Self-Healing ist eine Replica mit Recreate und RWO. Zero-Downtime braucht replicas > 1, persistence.access_mode: ReadWriteMany (oder ein bestehendes RWX-Claim) und Valkey für File-Locking. S3-Primary ist dafür die empfohlene Dateiablage.

Imaginary und Metriken

Preview-Service Imaginary kommt aus dem Nextcloud-AIO-Image (Digest-Pin). Der Exporter xperimental/nextcloud-exporter scrapet die Instanz; Token optional, sonst Admin-Passwort.

Actions

polycrate run nextcloud install
polycrate run nextcloud status
polycrate run nextcloud uninstall   # Helm-Release; PVC hat resource-policy keep, S3-Bucket bleibt

Upgrade

Chart- und App-Pin in block.poly (chart.version, app_version). Nextcloud erlaubt Upgrades nur Major für Major. install führt occ upgrade im Container-Entrypoint aus. Rollback auf eine ältere Major-Version ist kein unterstützter Pfad — Restore der Datenbank plus passendes Chart.