chore: move piwigo to volsync PVCs

This commit is contained in:
SeanOMik 2024-10-17 15:59:02 -04:00
parent 13e687361e
commit 0e8cde4438
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
4 changed files with 38 additions and 9 deletions

View File

@ -10,4 +10,4 @@ resources:
- ./well-known-site
- ./dendrite/ks.yaml
- ./ganymede
- ./piwigo
- ./piwigo/ks.yaml

View File

@ -61,14 +61,10 @@ spec:
port: http
persistence:
config:
type: hostPath
hostPath: /mnt/MainPool/Kubernetes/piwigo/config
data:
existingClaim: piwigo
globalMounts:
- path: /config
gallery:
type: hostPath
hostPath: /mnt/MainPool/Kubernetes/piwigo/gallery
globalMounts:
subPath: config
- path: /gallery
subPath: gallery

View File

@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../common/templates/volsync
- ./helm-release.yaml

View File

@ -0,0 +1,32 @@
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app piwigo
namespace: flux-system
spec:
timeout: 5m
interval: 10m
targetNamespace: default
path: ./kubernetes/main/apps/default/piwigo/app
prune: true
sourceRef:
kind: GitRepository
name: home-cluster
decryption:
provider: sops
secretRef:
name: sops-gpg
dependsOn:
- name: openebs
- name: openebs-sc
- name: volsync
postBuild:
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets
substitute:
APP: *app
VOLSYNC_CAPACITY: 10Gi