From 1ecce49f3b1e4022545afbcbf99c7912db3643a5 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Fri, 22 Nov 2024 20:52:52 -0600 Subject: [PATCH] move plex to nix --- .../default/plex/app/helmrelease.yaml | 0 .../default/plex/app/kustomization.yaml | 0 .../default/plex/app/pvc.yaml | 0 .../kometa-image-maid/externalsecret.yaml | 0 .../plex/kometa-image-maid/helmrelease.yaml | 0 .../plex/kometa-image-maid/kustomization.yaml | 0 .archive/default/plex/ks.yaml | 55 +++++++++++++++++++ kubernetes/apps/default/plex/ks.yaml | 55 ------------------- .../default/plex/trakt-sync/helmrelease.yaml | 4 +- 9 files changed, 57 insertions(+), 57 deletions(-) rename {kubernetes/apps => .archive}/default/plex/app/helmrelease.yaml (100%) rename {kubernetes/apps => .archive}/default/plex/app/kustomization.yaml (100%) rename {kubernetes/apps => .archive}/default/plex/app/pvc.yaml (100%) rename {kubernetes/apps => .archive}/default/plex/kometa-image-maid/externalsecret.yaml (100%) rename {kubernetes/apps => .archive}/default/plex/kometa-image-maid/helmrelease.yaml (100%) rename {kubernetes/apps => .archive}/default/plex/kometa-image-maid/kustomization.yaml (100%) create mode 100644 .archive/default/plex/ks.yaml diff --git a/kubernetes/apps/default/plex/app/helmrelease.yaml b/.archive/default/plex/app/helmrelease.yaml similarity index 100% rename from kubernetes/apps/default/plex/app/helmrelease.yaml rename to .archive/default/plex/app/helmrelease.yaml diff --git a/kubernetes/apps/default/plex/app/kustomization.yaml b/.archive/default/plex/app/kustomization.yaml similarity index 100% rename from kubernetes/apps/default/plex/app/kustomization.yaml rename to .archive/default/plex/app/kustomization.yaml diff --git a/kubernetes/apps/default/plex/app/pvc.yaml b/.archive/default/plex/app/pvc.yaml similarity index 100% rename from kubernetes/apps/default/plex/app/pvc.yaml rename to .archive/default/plex/app/pvc.yaml diff --git a/kubernetes/apps/default/plex/kometa-image-maid/externalsecret.yaml b/.archive/default/plex/kometa-image-maid/externalsecret.yaml similarity index 100% rename from kubernetes/apps/default/plex/kometa-image-maid/externalsecret.yaml rename to .archive/default/plex/kometa-image-maid/externalsecret.yaml diff --git a/kubernetes/apps/default/plex/kometa-image-maid/helmrelease.yaml b/.archive/default/plex/kometa-image-maid/helmrelease.yaml similarity index 100% rename from kubernetes/apps/default/plex/kometa-image-maid/helmrelease.yaml rename to .archive/default/plex/kometa-image-maid/helmrelease.yaml diff --git a/kubernetes/apps/default/plex/kometa-image-maid/kustomization.yaml b/.archive/default/plex/kometa-image-maid/kustomization.yaml similarity index 100% rename from kubernetes/apps/default/plex/kometa-image-maid/kustomization.yaml rename to .archive/default/plex/kometa-image-maid/kustomization.yaml diff --git a/.archive/default/plex/ks.yaml b/.archive/default/plex/ks.yaml new file mode 100644 index 00000000..ed205f69 --- /dev/null +++ b/.archive/default/plex/ks.yaml @@ -0,0 +1,55 @@ +--- +# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: &app plex + namespace: flux-system +spec: + targetNamespace: default + commonMetadata: + labels: + app.kubernetes.io/name: *app + path: ./kubernetes/apps/default/plex/app + prune: true + sourceRef: + kind: GitRepository + name: theshire + wait: true + dependsOn: + - name: rook-ceph-cluster + - name: volsync + - name: external-secrets-stores + interval: 30m + timeout: 5m + postBuild: + substitute: + APP: *app + GATUS_PATH: /web/index.html + VOLSYNC_CAPACITY: 30Gi +--- +# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: &app kometa-image-maid + namespace: flux-system +spec: + targetNamespace: default + commonMetadata: + labels: + app.kubernetes.io/name: *app + interval: 30m + timeout: 5m + path: "./kubernetes/apps/default/plex/kometa-image-maid" + prune: true + sourceRef: + kind: GitRepository + name: theshire + wait: false + dependsOn: + - name: external-secrets-stores + - name: plex + postBuild: + substitute: + APP: *app diff --git a/kubernetes/apps/default/plex/ks.yaml b/kubernetes/apps/default/plex/ks.yaml index 08d52fb2..9747cf57 100644 --- a/kubernetes/apps/default/plex/ks.yaml +++ b/kubernetes/apps/default/plex/ks.yaml @@ -2,35 +2,6 @@ # yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization -metadata: - name: &app plex - namespace: flux-system -spec: - targetNamespace: default - commonMetadata: - labels: - app.kubernetes.io/name: *app - path: ./kubernetes/apps/default/plex/app - prune: true - sourceRef: - kind: GitRepository - name: theshire - wait: true - dependsOn: - - name: rook-ceph-cluster - - name: volsync - - name: external-secrets-stores - interval: 30m - timeout: 5m - postBuild: - substitute: - APP: *app - GATUS_PATH: /web/index.html - VOLSYNC_CAPACITY: 30Gi ---- -# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization metadata: name: &app plex-trakt-sync namespace: flux-system @@ -56,29 +27,3 @@ spec: substitute: APP: *app VOLSYNC_CAPACITY: 1Gi ---- -# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: &app kometa-image-maid - namespace: flux-system -spec: - targetNamespace: default - commonMetadata: - labels: - app.kubernetes.io/name: *app - interval: 30m - timeout: 5m - path: "./kubernetes/apps/default/plex/kometa-image-maid" - prune: true - sourceRef: - kind: GitRepository - name: theshire - wait: false - dependsOn: - - name: external-secrets-stores - - name: plex - postBuild: - substitute: - APP: *app diff --git a/kubernetes/apps/default/plex/trakt-sync/helmrelease.yaml b/kubernetes/apps/default/plex/trakt-sync/helmrelease.yaml index 8bba9b75..10d72da9 100644 --- a/kubernetes/apps/default/plex/trakt-sync/helmrelease.yaml +++ b/kubernetes/apps/default/plex/trakt-sync/helmrelease.yaml @@ -37,8 +37,8 @@ spec: args: - sync env: - PLEX_BASEURL: http://plex.default.svc.cluster.local:32400 - PLEX_LOCALURL: http://plex.default.svc.cluster.local:32400 + PLEX_BASEURL: http://10.1.1.61:32400 + PLEX_LOCALURL: http://10.1.1.61:32400 PLEX_USERNAME: veriwind TRAKT_USERNAME: jahanson probes: