chore: move piwigo to volsync PVCs

This commit is contained in:
SeanOMik 2024-10-17 16:02:20 -04:00
parent 13e687361e
commit 601675952f
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 - ./well-known-site
- ./dendrite/ks.yaml - ./dendrite/ks.yaml
- ./ganymede - ./ganymede
- ./piwigo - ./piwigo/ks.yaml

View File

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

View File

@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ../../../../../common/templates/volsync
- ./helm-release.yaml - ./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