homelab/k8s/apps/nextcloud/release.yaml
2025-03-02 12:17:20 -08:00

111 lines
2.2 KiB
YAML

---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: nextcloud
namespace: default
spec:
interval: 10m0s
releaseName: nextcloud
targetNamespace: default
chart:
spec:
chart: nextcloud
version: 6.6.3
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: nextcloud
namespace: flux-system
valuesFrom:
- kind: Secret
name: nextcloud-creds
valuesKey: nextcloud-password
targetPath: nextcloud.password
- kind: Secret
name: nextcloud-db-creds
valuesKey: mysql-password
targetPath: externalDatabase.password
- kind: Secret
name: nextcloud-db-creds
valuesKey: mysql-password
targetPath: mariadb.auth.password
values:
replicas: 3
nextcloud:
host: nc.mnke.org
username: admin
# password: ""
internalDatabase:
enabled: false
externalDatabase:
enabled: true
type: mysql
host: db.home.mnke.org:3306
database: nextcloud
user: nextcloud
# password: ""
# mariadb:
# enabled: true
# auth:
# database: nextcloud
# username: nextcloud
# # password: ""
# global:
# defaultStorageClass:
persistence:
enabled: true
storageClass: longhorn
accessMode: ReadWriteMany
size: 8Gi
nextcloudData:
enabled: true
storageClass: nfs-client
accessMode: ReadWriteMany
size: 128Gi
livenessProbe:
# it takes so long for nextcloud to start up
enabled: false
initialDelaySeconds: 1200
periodSeconds: 30
failureThreshold: 10
readinessProbe:
enabled: false
initialDelaySeconds: 1200
periodSeconds: 30
failureThreshold: 10
cronjob:
enabled: true
resources:
requests:
cpu: "50m"
memory: "64M"
limits:
cpu: "200m"
memory: "256M"
redis:
enabled: true
global:
storageClass: nfs-client
resources:
requests:
cpu: "200m"
memory: "512M"
limits:
cpu: "1000m"
memory: "1G"