k3s-cluster/kubernetes/thin/apps/default/nextcloud/files/helm-release.yaml

80 lines
2 KiB
YAML

# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: nextcloud
spec:
interval: 5m
chart:
spec:
chart: app-template
version: 3.4.0
sourceRef:
kind: HelmRepository
name: bjws-charts
namespace: flux-system
dependsOn:
- name: openebs
namespace: openebs
values:
controllers:
main:
containers:
nextcloud:
image:
repository: nextcloud
tag: 30.0.4
envFrom:
- secretRef:
name: nextcloud-secrets
env:
POSTGRES_HOST: postgresql.database.svc
POSTGRES_DB: nextcloud
POSTGRES_USER: nextcloud
# REDIS_HOST: redis.database.svc
# REDIS_HOST_PORT: 6379
SMTP_HOST: exim.default.svc
SMTP_PORT: 8025
SMTP_AUTHTYPE: PLAIN
MAIL_FROM_ADDRESS: karasu
MAIL_DOMAIN: ${SECRET_BASE_DOMAIN}
PHP_UPLOAD_LIMIT: 25G
NEXTCLOUD_UPDATE: 0
NEXTCLOUD_TRUSTED_DOMAINS: '*.${SECRET_NEW_DOMAIN}'
service:
app:
controller: main
ports:
http:
port: 80
ingress:
main:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
traefik.ingress.kubernetes.io/router.entrypoints: websecure
nginx.ingress.kubernetes.io/proxy-body-size: 25G
className: internal
hosts:
- host: "drive.internal.${SECRET_NEW_DOMAIN}"
paths:
- path: /
service:
identifier: app
port: http
persistence:
config:
existingClaim: nextcloud-data
advancedMounts:
main: # controller name
nextcloud: # container name
- path: /var/www/html