From fa6d6071ef32f5f7821e7f5e40d39d3b9a6e8b4b Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Wed, 21 Aug 2024 09:51:06 -0400 Subject: [PATCH] clean up --- k8s/apps/videohosting/templates/sts-abs.yaml | 91 ---------- k8s/apps/videohosting/templates/sts-plex.yaml | 168 ------------------ k8s/apps/videohosting/values.yaml | 47 ----- 3 files changed, 306 deletions(-) delete mode 100644 k8s/apps/videohosting/templates/sts-abs.yaml delete mode 100644 k8s/apps/videohosting/templates/sts-plex.yaml diff --git a/k8s/apps/videohosting/templates/sts-abs.yaml b/k8s/apps/videohosting/templates/sts-abs.yaml deleted file mode 100644 index 7ff647c..0000000 --- a/k8s/apps/videohosting/templates/sts-abs.yaml +++ /dev/null @@ -1,91 +0,0 @@ -{{ if .Values.abs.enabled }} ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: abs-envs -data: - PUID: "1000" - PGID: "1000" - TZ: {{ .Values.global.timezone }} - ---- -kind: Service -apiVersion: v1 -metadata: - name: abs -spec: - selector: - app: abs - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - name: "http" ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: abs -spec: - selector: - matchLabels: - app: abs - replicas: 1 - revisionHistoryLimit: 2 - updateStrategy: - type: RollingUpdate - template: - metadata: - labels: - app: abs - spec: - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 1 - preference: - matchExpressions: - - key: homelab/capacity - operator: In - values: - - high - containers: - - name: abs - image: "{{ .Values.abs.repo }}:{{ .Values.abs.tag }}" - imagePullPolicy: "Always" - envFrom: - - configMapRef: - name: abs-envs - ports: - - containerPort: 80 - name: http - resources: - {{ .Values.abs.resources | toYaml | nindent 12 }} - volumeMounts: - - name: nfs-k3s - mountPath: /config - subPath: custom-app/abs/config - - name: nfs-k3s - mountPath: /metadata - subPath: custom-app/abs/metadata - - name: torrents - mountPath: /books - subPath: books - startupProbe: - tcpSocket: - port: http - initialDelaySeconds: 10 - failureThreshold: 10 - timeoutSeconds: 30 - volumes: - - name: torrents - nfs: - server: "{{ $.Values.global.nfs.server }}" - path: "{{ $.Values.global.nfs.additionalShares.torrents }}" - readOnly: true - - name: nfs-k3s - nfs: - server: "{{ $.Values.global.nfs.server }}" - path: "{{ $.Values.global.nfs.share }}" -{{ end }} \ No newline at end of file diff --git a/k8s/apps/videohosting/templates/sts-plex.yaml b/k8s/apps/videohosting/templates/sts-plex.yaml deleted file mode 100644 index c473f38..0000000 --- a/k8s/apps/videohosting/templates/sts-plex.yaml +++ /dev/null @@ -1,168 +0,0 @@ ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: plex-envs -data: - PUID: "1000" - PGID: "1000" - TZ: {{ .Values.global.timezone }} - ADVERTISE_IP: "https://plex.{{ .Values.global.rootSubDomain }}.{{ .Values.global.domain }}" - ---- -kind: Service -apiVersion: v1 -metadata: - name: plex -spec: - selector: - app: plex - type: ClusterIP - ports: - - port: 32400 - targetPort: 32400 - name: "32400" - - port: 1900 - targetPort: 1900 - name: "1900-udp" - protocol: UDP - - port: 3005 - targetPort: 3005 - name: "3005" - - port: 5353 - targetPort: 5353 - name: "5353-udp" - protocol: UDP - - port: 8324 - targetPort: 8324 - name: "8324" - - port: 32410 - targetPort: 32410 - name: "32410-udp" - protocol: UDP - - port: 32412 - targetPort: 32412 - name: "32412-udp" - protocol: UDP - - port: 32413 - targetPort: 32413 - name: "32413-udp" - protocol: UDP - - port: 32414 - targetPort: 32414 - name: "32414-udp" - protocol: UDP - - port: 32469 - targetPort: 32469 - name: "32469" - ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: plex -spec: - selector: - matchLabels: - app: plex - replicas: 1 - revisionHistoryLimit: 2 - updateStrategy: - type: RollingUpdate - volumeClaimTemplates: - - metadata: - finalizers: - - kubernetes.io/pvc-protection - name: config - spec: - storageClassName: local-path - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Gi - limits: - storage: 100Gi - - metadata: - name: transcode - spec: - storageClassName: local-path - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Gi - limits: - storage: 100Gi - template: - metadata: - labels: - app: plex - spec: - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 1 - preference: - matchExpressions: - - key: homelab/capacity - operator: In - values: - - high - containers: - - name: plex - image: "{{ .Values.plex.repo }}:{{ .Values.plex.tag }}" - imagePullPolicy: "Always" - envFrom: - - configMapRef: - name: plex-envs - ports: - - containerPort: 32400 - name: plex - - containerPort: 1900 - protocol: UDP - - containerPort: 3005 - - containerPort: 5353 - protocol: UDP - - containerPort: 8324 - - containerPort: 32410 - protocol: UDP - - containerPort: 32412 - protocol: UDP - - containerPort: 32413 - protocol: UDP - - containerPort: 32414 - protocol: UDP - - containerPort: 32469 - resources: - {{- .Values.plex.resources | toYaml | nindent 12 }} - volumeMounts: - - name: config - mountPath: /config - - name: transcode - mountPath: /transcode - - name: torrents - mountPath: /tv - subPath: tv - - name: torrents - mountPath: /movies - subPath: movies - - name: family-videos - mountPath: /family-videos - startupProbe: - tcpSocket: - port: plex - initialDelaySeconds: 10 - failureThreshold: 10 - timeoutSeconds: 30 - volumes: - - name: torrents - nfs: - server: "{{ $.Values.global.nfs.server }}" - path: "{{ $.Values.global.nfs.additionalShares.torrents }}" - readOnly: true - - name: family-videos - nfs: - server: "{{ $.Values.global.nfs.server }}" - path: "{{ .Values.global.nfs.additionalShares.familyvideos }}" - readOnly: true \ No newline at end of file diff --git a/k8s/apps/videohosting/values.yaml b/k8s/apps/videohosting/values.yaml index ca74469..de33fe4 100644 --- a/k8s/apps/videohosting/values.yaml +++ b/k8s/apps/videohosting/values.yaml @@ -6,15 +6,6 @@ global: additionalShares: torrents: "changeme" familyvideos: "changeme" -plex: - repo: "plexinc/pms-docker" - tag: "1.40.0.7998-c29d4c0c8" - resources: - limits: - memory: "14Gi" - requests: - cpu: 3.5 - memory: "4Gi" jellyfin: enabled: false @@ -27,22 +18,6 @@ jellyfin: cpu: 1 memory: "4Gi" -abs: - enabled: false - repo: ghcr.io/advplyr/audiobookshelf - tag: latest - resources: - limits: - memory: "4Gi" - requests: - cpu: 1 - memory: "4Gi" - configVolumesResources: - requests: - storage: 10Gi - limits: - storage: 100Gi - arrs: sonarr: repo: lscr.io/linuxserver/sonarr @@ -141,25 +116,3 @@ services: requests: cpu: 250m memory: "500M" - - jellyplex: - kind: Deployment - disableSVC: true - repo: "luigi311/jellyplex-watched" - tag: "latest" - envVars: - PLEX_BASEURL: "http://plex.{{.Release.Namespace}}.svc.cluster.local:32400" - JELLYFIN_BASEURL: "http://bigbox1.lab.internal:8096" - # JELLYFIN_BASEURL: "http://jellyfin.{{.Release.Namespace}}.svc.cluster.local:8096" - SSL_BYPASS: "True" - SYNC_FROM_PLEX_TO_JELLYFIN: "True" - SYNC_FROM_JELLYFIN_TO_PLEX: "False" - SYNC_FROM_PLEX_TO_PLEX: "False" - SYNC_FROM_JELLYFIN_TO_JELLYFIN: "True" - DRYRUN: "False" - podResources: - limits: - memory: "500M" - requests: - cpu: 50m - memory: "500M"