From 0cb3df966329c54dff51362f52e67eca9e6d4e05 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sat, 8 Apr 2023 23:49:05 -0400 Subject: [PATCH] Add komga --- cluster/apps/kustomization.yaml | 2 +- cluster/apps/media/komga/helm-release.yaml | 59 +++++++++++++++++++++ cluster/apps/media/komga/kustomization.yaml | 4 ++ cluster/apps/media/kustomization.yaml | 3 +- 4 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 cluster/apps/media/komga/helm-release.yaml create mode 100644 cluster/apps/media/komga/kustomization.yaml diff --git a/cluster/apps/kustomization.yaml b/cluster/apps/kustomization.yaml index 1e52593..f952cbb 100644 --- a/cluster/apps/kustomization.yaml +++ b/cluster/apps/kustomization.yaml @@ -3,5 +3,5 @@ kind: Kustomization resources: - ./database - ./authentik -#- ./media +- ./media - ./download \ No newline at end of file diff --git a/cluster/apps/media/komga/helm-release.yaml b/cluster/apps/media/komga/helm-release.yaml new file mode 100644 index 0000000..e4c8b71 --- /dev/null +++ b/cluster/apps/media/komga/helm-release.yaml @@ -0,0 +1,59 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: komga + namespace: media +spec: + interval: 5m + chart: + spec: + chart: app-template + version: 1.3.x + sourceRef: + kind: HelmRepository + name: bjws-charts + namespace: flux-system + + values: + image: + repository: gotson/komga + tag: latest + env: + TZ: America/New_York + service: + main: + ports: + http: + port: 8080 + probes: + liveness: + enabled: false + ingress: + main: + enabled: true + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-production" + traefik.ingress.kubernetes.io/router.entrypoints: websecure + hosts: + - host: "k3skom.***REMOVED***" + paths: + - path: / + pathType: Prefix + persistence: + config: + enabled: true + type: hostPath + hostPath: /mnt/MainPool/Kubernetes/komga + mountPath: /config + storage: + enabled: true + type: hostPath + hostPath: /mnt/MainPool/Media/Media + mountPath: /storage + + resources: + requests: + cpu: 2m + memory: 1500Mi + limits: + memory: 3200Mi \ No newline at end of file diff --git a/cluster/apps/media/komga/kustomization.yaml b/cluster/apps/media/komga/kustomization.yaml new file mode 100644 index 0000000..ea3145d --- /dev/null +++ b/cluster/apps/media/komga/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ./helm-release.yaml \ No newline at end of file diff --git a/cluster/apps/media/kustomization.yaml b/cluster/apps/media/kustomization.yaml index 8dc8ea3..4a6fb12 100644 --- a/cluster/apps/media/kustomization.yaml +++ b/cluster/apps/media/kustomization.yaml @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./namespace.yaml -- ./network_policy.yaml \ No newline at end of file +- ./network_policy.yaml +- ./komga \ No newline at end of file