Refactor Nextcloud configuration: update environment variable keys, enhance Ingress annotations, and add database initialization job with kustomization support.

This commit is contained in:
2025-05-27 17:20:28 -07:00
parent ace1909477
commit 32d51b71ba
7 changed files with 63 additions and 11 deletions

View File

@@ -25,6 +25,16 @@ secretGenerator:
- config/secrets.env
replacements:
- source:
kind: ConfigMap
name: config
fieldPath: data.DOMAIN
targets:
- select:
kind: Ingress
name: nextcloud-public
fieldPaths:
- metadata.annotations.[external-dns.alpha.kubernetes.io/target]
- source:
kind: ConfigMap
name: config
@@ -32,7 +42,7 @@ replacements:
targets:
- select:
kind: Ingress
name: nextcloud-ingress
name: nextcloud-public
fieldPaths:
- spec.rules.0.host
- spec.tls.0.hosts.0
@@ -56,3 +66,18 @@ replacements:
name: nextcloud-pvc
fieldPaths:
- spec.resources.requests.storage
- source:
kind: ConfigMap
name: config
fieldPath: data.NEXTCLOUD_IMAGE
targets:
- select:
kind: Deployment
name: nextcloud
fieldPaths:
- spec.template.spec.containers.0.image
- select:
kind: CronJob
name: nextcloud-cron
fieldPaths:
- spec.jobTemplate.spec.template.spec.containers.0.image