Merge pull request 'Major nextcloud migration' (#131) from nextcloud-new into main

Reviewed-on: #131
This commit was merged in pull request #131.
This commit is contained in:
williamp committed 2026-11-12 01:25:06 +00:00
commit e21d7cc15e
5 files changed
+197

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
apiVersion: v2
name: nextcloud
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "1.0"
dependencies:
- name: nextcloud
version: 9.4.1
repository: https://nextcloud.github.io/helm/
+30
View File
@@ -0,0 +1,30 @@
{{- if .Values.externalSecret.admin.create }}
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: nextcloud-admin
spec:
data:
- remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: nextcloud
metadataPolicy: None
property: nextcloud-username
secretKey: nextcloud-username
- remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: nextcloud
metadataPolicy: None
property: nextcloud-password
secretKey: nextcloud-password
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: weyma-vault
target:
creationPolicy: Owner
deletionPolicy: Retain
name: nextcloud-admin
{{- end }}
@@ -0,0 +1,27 @@
{{- if .Values.dataVolume.create }}
apiVersion: v1
kind: PersistentVolume
metadata:
name: {{ .Values.dataVolume.name }}
spec:
capacity:
storage: 1Ti
accessModes: [ReadWriteMany]
persistentVolumeReclaimPolicy: Retain
storageClassName: ""
nfs:
server: 10.105.15.20
path: {{ .Values.dataVolume.nfsPath }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.dataVolume.name }}
spec:
accessModes: [ReadWriteMany]
storageClassName: ""
volumeName: {{ .Values.dataVolume.name }}
resources:
requests:
storage: 1Ti
{{- end }}
+27
View File
@@ -0,0 +1,27 @@
{{- if .Values.externalSecret.db.create }}
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: nextcloud-db
spec:
data:
- remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: cloudnativepg
metadataPolicy: None
property: {{ .Values.externalSecret.db.cnpgPropertyName }}
secretKey: password
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: weyma-vault
target:
template:
data:
username: {{ .Values.externalSecret.db.username }}
password: "{{`{{ .password }}`}}"
creationPolicy: Owner
deletionPolicy: Retain
name: nextcloud-db
{{- end }}
+99
View File
@@ -0,0 +1,99 @@
dataVolume:
create: true
name: nextcloud-data
nfsPath: /mnt/hdd-pool/nextcloud-files
externalSecret:
db:
create: true
username: nextcloud
cnpgPropertyName: nextcloud_pw
admin:
create: true
nextcloud:
podAnnotations:
backup.velero.io/backup-volumes: nextcloud-main
replicaCount: 1
httpRoute:
enabled: true
hostnames:
- nextcloud.dubyatp.xyz
parentRefs:
- name: traefik
sectionName: https
kind: Gateway
rules:
- matches:
- path:
type: PathPrefix
value: /
filters:
- type: ResponseHeaderModifier
responseHeaderModifier:
set:
- name: Strict-Transport-Security
value: "max-age=15552000; includeSubDomains"
nextcloud:
host: nextcloud.dubyatp.xyz
existingSecret:
enabled: true
secretName: nextcloud-admin
configs:
domains.config.php: |-
<?php
$CONFIG = array (
'trusted_domains' => array (
0 => 'localhost',
1 => 'nextcloud.dubyatp.xyz',
),
'overwrite.cli.url' => 'https://nextcloud.dubyatp.xyz',
'overwriteprotocol' => 'https',
'trusted_proxies' => array ('127.0.0.1', '10.0.0.0/8'),
'forwarded_for_headers' => array ('HTTP_X_FORWARDED_FOR'),
'default_phone_region' => 'US',
'maintenance_window_start' => 1,
);
db.config.php: |-
<?php
$CONFIG = array (
'dbtype' => 'pgsql',
'dbhost' => getenv('POSTGRES_HOST'),
'dbport' => '5432',
'dbname' => getenv('POSTGRES_DB'),
'dbuser' => getenv('POSTGRES_USER'),
'dbpassword' => getenv('POSTGRES_PASSWORD'),
);
internalDatabase:
enabled: false
externalDatabase:
enabled: true
type: postgresql
host: pooler-weyma-rw.cloudnativepg.svc.cluster.local
database: nextcloud
existingSecret:
enabled: true
secretName: nextcloud-db
usernameKey: username
passwordKey: password
redis:
enabled: true
architecture: standalone
auth:
enabled: false
master:
persistence:
enabled: false
commonConfiguration: |-
appendonly no
save ""
persistence:
enabled: true
nextcloudData:
enabled: true
existingClaim: nextcloud-data
accessMode: ReadWriteMany
cronjob:
enabled: true
type: sidecar
startupProbe:
enabled: true
failureThreshold: 90