diff --git a/kubernetes/apps/default/kustomization.yaml b/kubernetes/apps/default/kustomization.yaml index b2b72bee..d5912b2f 100644 --- a/kubernetes/apps/default/kustomization.yaml +++ b/kubernetes/apps/default/kustomization.yaml @@ -5,6 +5,7 @@ kind: Kustomization resources: # Flux-Kustomizations - ./jellyfin/ks.yaml + - ./maintainerr/ks.yaml - ./prowlarr/ks.yaml - ./radarr/ks.yaml - ./recyclarr/ks.yaml diff --git a/kubernetes/apps/default/maintainerr/app/helmrelease.yaml b/kubernetes/apps/default/maintainerr/app/helmrelease.yaml new file mode 100644 index 00000000..b97c48b3 --- /dev/null +++ b/kubernetes/apps/default/maintainerr/app/helmrelease.yaml @@ -0,0 +1,70 @@ +--- +# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json +apiVersion: helm.toolkit.fluxcd.io/v2beta2 +kind: HelmRelease +metadata: + name: maintainerr +spec: + chart: + spec: + chart: app-template + version: 2.5.0 + interval: 30m + sourceRef: + kind: HelmRepository + name: bjw-s + namespace: flux-system + interval: 30m + values: + controllers: + main: + annotations: + reloader.stakater.com/auto: "true" + + pod: + securityContext: + runAsUser: 568 + runAsGroup: 568 + fsGroup: 568 + fsGroupChangePolicy: "OnRootMismatch" + + containers: + main: + image: + repository: ghcr.io/jorenn92/maintainerr + tag: 1.7.1@sha256:69756fae3b2a58905a1ca3ad86d34b59effd8c92140dcb70fd315ffccdea4e0d + resources: + requests: + cpu: 5m + memory: 128Mi + limits: + memory: 512Mi + + service: + main: + ports: + http: + port: 80 + + ingress: + main: + enabled: true + className: internal-nginx + hosts: + - host: &host "{{ .Release.Name }}.jahanson.tech" + paths: + - path: / + pathType: Prefix + service: + name: main + port: http + tls: + - hosts: + - *host + + persistence: + data: + enabled: true + existingClaim: maintainerr + globalMounts: + - path: /opt/data diff --git a/kubernetes/apps/default/maintainerr/app/kustomization.yaml b/kubernetes/apps/default/maintainerr/app/kustomization.yaml new file mode 100644 index 00000000..93b37f54 --- /dev/null +++ b/kubernetes/apps/default/maintainerr/app/kustomization.yaml @@ -0,0 +1,7 @@ +--- +# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./helmrelease.yaml + - ../../../../templates/volsync diff --git a/kubernetes/apps/default/maintainerr/ks.yaml b/kubernetes/apps/default/maintainerr/ks.yaml new file mode 100644 index 00000000..9690b350 --- /dev/null +++ b/kubernetes/apps/default/maintainerr/ks.yaml @@ -0,0 +1,28 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: &app maintainerr + namespace: flux-system +spec: + targetNamespace: media + commonMetadata: + labels: + app.kubernetes.io/name: *app + interval: 10m + path: "./kubernetes/main/apps/media/maintainerr/app" + prune: true + sourceRef: + kind: GitRepository + name: home-ops-kubernetes + wait: false + dependsOn: + - name: rook-ceph-cluster + - name: volsync + - name: external-secrets-stores + - name: plex + postBuild: + substitute: + APP: *app + VOLSYNC_CAPACITY: 1Gi