From 13e687361e5b0ecaec1cbbf582a32dcb58539177 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 17 Oct 2024 15:50:12 -0400 Subject: [PATCH] chore: move mealie to volsync PVCs --- .../main/apps/default/kustomization.yaml | 2 +- .../mealie/{ => app}/env-secret.sops.yaml | 0 .../mealie/{ => app}/helm-release.yaml | 3 +- .../mealie/{ => app}/kustomization.yaml | 1 + kubernetes/main/apps/default/mealie/ks.yaml | 32 +++++++++++++++++++ 5 files changed, 35 insertions(+), 3 deletions(-) rename kubernetes/main/apps/default/mealie/{ => app}/env-secret.sops.yaml (100%) rename kubernetes/main/apps/default/mealie/{ => app}/helm-release.yaml (97%) rename kubernetes/main/apps/default/mealie/{ => app}/kustomization.yaml (61%) create mode 100644 kubernetes/main/apps/default/mealie/ks.yaml diff --git a/kubernetes/main/apps/default/kustomization.yaml b/kubernetes/main/apps/default/kustomization.yaml index c8df715..dcc134c 100644 --- a/kubernetes/main/apps/default/kustomization.yaml +++ b/kubernetes/main/apps/default/kustomization.yaml @@ -4,7 +4,7 @@ resources: - ./fireflyiii/ks.yaml - ./cdn - ./trilium -- ./mealie +- ./mealie/ks.yaml - ./huginn - ../../../common/apps/exim/ks.yaml - ./well-known-site diff --git a/kubernetes/main/apps/default/mealie/env-secret.sops.yaml b/kubernetes/main/apps/default/mealie/app/env-secret.sops.yaml similarity index 100% rename from kubernetes/main/apps/default/mealie/env-secret.sops.yaml rename to kubernetes/main/apps/default/mealie/app/env-secret.sops.yaml diff --git a/kubernetes/main/apps/default/mealie/helm-release.yaml b/kubernetes/main/apps/default/mealie/app/helm-release.yaml similarity index 97% rename from kubernetes/main/apps/default/mealie/helm-release.yaml rename to kubernetes/main/apps/default/mealie/app/helm-release.yaml index 829aec9..4051d26 100644 --- a/kubernetes/main/apps/default/mealie/helm-release.yaml +++ b/kubernetes/main/apps/default/mealie/app/helm-release.yaml @@ -92,7 +92,6 @@ spec: persistence: data: - type: hostPath - hostPath: /mnt/MainPool/Kubernetes/Mealie + existingClaim: mealie globalMounts: - path: /app/data diff --git a/kubernetes/main/apps/default/mealie/kustomization.yaml b/kubernetes/main/apps/default/mealie/app/kustomization.yaml similarity index 61% rename from kubernetes/main/apps/default/mealie/kustomization.yaml rename to kubernetes/main/apps/default/mealie/app/kustomization.yaml index 8eb891c..588e5f8 100644 --- a/kubernetes/main/apps/default/mealie/kustomization.yaml +++ b/kubernetes/main/apps/default/mealie/app/kustomization.yaml @@ -1,5 +1,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: +- ../../../../../common/templates/volsync - ./env-secret.sops.yaml - ./helm-release.yaml \ No newline at end of file diff --git a/kubernetes/main/apps/default/mealie/ks.yaml b/kubernetes/main/apps/default/mealie/ks.yaml new file mode 100644 index 0000000..94b696f --- /dev/null +++ b/kubernetes/main/apps/default/mealie/ks.yaml @@ -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 mealie + namespace: flux-system +spec: + timeout: 5m + interval: 10m + targetNamespace: default + path: ./kubernetes/main/apps/default/mealie/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: 5Gi \ No newline at end of file