Skip to content

Commit

Permalink
prep for kometa
Browse files Browse the repository at this point in the history
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
  • Loading branch information
funkypenguin committed May 9, 2024
1 parent e7df60a commit 7515046
Show file tree
Hide file tree
Showing 7 changed files with 181 additions and 1 deletion.
5 changes: 5 additions & 0 deletions charts/other/myprecious/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ dependencies:
repository: http://chartmuseum.chartmuseum:8080
condition: plexmetamanager.enabled
alias: plexmetamanager
- name: kometa
version: ~2.4.0
repository: http://chartmuseum.chartmuseum:8080
condition: kometa.enabled
alias: kometa
- name: filebot-node
version: ~0.0.1
repository: http://chartmuseum.chartmuseum:8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,17 @@ data:
- type: email
{{ end }}
{{ if .Values.kometa.enabled }}
- name: kometa
group: manage-media
url: "http://kometa:9898"
interval: 5m
conditions:
- "[STATUS] == 200"
alerts:
- type: email
{{ end }}
{{ if or .Values.autoscan.enabled }}
- name: autoscan
group: manage-media
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,14 @@ data:
siteMonitor: http://plexmetamanager:9898
{{ end }}
{{ if .Values.kometa.enabled }}
- Kometa:
icon: mdi-folder-information
href: https://{{ .Release.Name }}-filebrowser.elfhosted.com/files/config/kometa/
description: Manage Plex Metadata
siteMonitor: http://kometa:9898
{{ end }}
{{ if or .Values.autoscan.enabled }}
- Autoscan:
icon: mdi-magnify-scan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -823,13 +823,25 @@ data:
# logo: "assets/png/unpackerr.png"
# Alternatively a fa icon can be provided:
icon: "fas fa-photo-film"
subtitle: "Unpack Media"
subtitle: "Manage Plex Libraries"
tag: "protected"
tagstyle: "is-success"
url: "https://{{ .Release.Name }}-filebrowser.elfhosted.com/files/config/plexmetamanager/"
target: "_blank" # optional html tag target attribute
{{ end }}
{{ if .Values.kometa.enabled }}
- name: "Kometa"
logo: "assets/png/kometa.png"
# Alternatively a fa icon can be provided:
# icon: "fas fa-photo-film"
subtitle: "Manage Plex Metadata"
tag: "protected"
tagstyle: "is-success"
url: "https://{{ .Release.Name }}-filebrowser.elfhosted.com/files/config/kometa/"
target: "_blank" # optional html tag target attribute
{{ end }}
{{ if .Values.autoscan.enabled }}
- name: "Autoscan"
# logo: "assets/png/autoscan.png"
Expand Down
15 changes: 15 additions & 0 deletions charts/other/myprecious/templates/pvcs-ssd/pvc-config-kometa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ if .Values.kometa.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: config-kometa
annotations:
helm.sh/resource-policy: keep
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storageClassName: ceph-filesystem
{{ end }}
20 changes: 20 additions & 0 deletions charts/other/myprecious/templates/services/service-kometa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ if .Values.kometa.enabled }}
apiVersion: v1
kind: Service
metadata:
name: kometa
labels:
app.kubernetes.io/name: kometa
app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
spec:
type: ClusterIP
ports:
- port: 9898
targetPort: 9898
protocol: TCP
name: http
selector:
app.kubernetes.io/name: kometa
app.kubernetes.io/instance: {{ .Release.Name }}
{{ end }}
109 changes: 109 additions & 0 deletions charts/other/myprecious/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2850,6 +2850,13 @@ filebrowser:
volumeSpec:
persistentVolumeClaim:
claimName: config-jellyseerr-ssd
kometa:
enabled: false
type: custom
mountPath: /storage/config/kometa/
volumeSpec:
persistentVolumeClaim:
claimName: config-kometa
pyload:
enabled: false
type: custom
Expand Down Expand Up @@ -7471,6 +7478,108 @@ plexmetamanager:
podinfo:
image: stefanprodan/podinfo # used to run probes from gatus

kometa:
enabled: false
sso:
enabled: true
priorityClassName: tenant-normal
image:
repository: ghcr.io/geek-cookbook/plex-meta-manager
tag: v2.0.1@sha256:5ceaedbbafb0ff7f22a291a6834caf8e0580ecab9d19914a5865b62e78b4e885
securityContext:
seccompProfile:
type: RuntimeDefault
readOnlyRootFilesystem: true
controller:
annotations:
configmap.reloader.stakater.com/reload: "elfbot-all,storage-changed,elfbot-kometa"
podSecurityContext:
seccompProfile:
type: RuntimeDefault
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: "OnRootMismatch"
automountServiceAccountToken: false
service:
main:
enabled: true # necessary for probes
ports:
http:
port: 9898 # doesn't matter this doesn,t actually use ports
envFrom:
- configMapRef:
name: elfbot-kometa
optional: true
persistence:
<<: *appmounts
config:
enabled: true
type: custom
mountPath: /config/
volumeSpec:
persistentVolumeClaim:
claimName: config-kometa
elfbot:
enabled: "true"
type: "custom"
volumeSpec:
configMap:
name: elfbot-kometa
optional: true
example-config:
enabled: "true"
type: "custom"
volumeSpec:
configMap:
name: kometa-config
initContainers:
bootstrap: *bootstrap
copy-example-config:
image: *tooling_image
imagePullPolicy: IfNotPresent
command:
- /bin/bash
- -c
- |
set -x
set -e
# If we don't already have an example config, create one
if [ ! -f /config/config.yml ];
then
cp /bootstrap/config.yml /config/
fi
volumeMounts:
- mountPath: /config
name: config
- name: example-config
mountPath: "/bootstrap/"
securityContext:
seccompProfile:
type: RuntimeDefault
readOnlyRootFilesystem: true
ingress:
main:
enabled: false
resources:
requests:
cpu: 10m
memory: 64Mi
limits:
cpu: 1
memory: 2Gi
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
additionalContainers:
podinfo:
image: stefanprodan/podinfo # used to run probes from gatus

rcloneui:
enabled: false
priorityClassName: tenant-normal
Expand Down

0 comments on commit 7515046

Please sign in to comment.