add komga

This commit is contained in:
Morten Olsen
2026-01-18 13:02:13 +01:00
parent 7bf747402d
commit 0b7d221180
9 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
apiVersion: v2
version: 1.0.0
name: komga
dependencies:
- name: common
version: 1.0.0
repository: file://../../common

View File

@@ -0,0 +1 @@
{{ include "common.deployment" . }}

View File

@@ -0,0 +1 @@
{{ include "common.pvc" . }}

View File

@@ -0,0 +1 @@
{{ include "common.service" . }}

View File

@@ -0,0 +1 @@
{{ include "common.virtualService" . }}

View File

@@ -0,0 +1,55 @@
image:
repository: gotson/komga
tag: latest
pullPolicy: IfNotPresent
subdomain: komga
deployment:
strategy: Recreate
replicas: 1
container:
port: 25600
securityContext:
runAsUser: 1000
runAsGroup: 1000
healthProbe:
type: tcpSocket
port: "25600"
service:
port: 80
targetPort: 25600
type: ClusterIP
volumes:
- name: config
mountPath: /config
persistentVolumeClaim: komga-config
- name: comics
mountPath: /data/comics
persistentVolumeClaim: comics
- name: downloads
mountPath: /data/downloads
persistentVolumeClaim: downloads
persistentVolumeClaims:
- name: config
size: 1Gi
initContainers:
- name: fix-permissions
image: busybox
command: ["sh", "-c", "chown -R 1000:1000 /config"]
securityContext:
runAsUser: 0
volumeMounts:
- name: config
mountPath: /config
virtualService:
enabled: true
gateways:
public: true
private: true

View File

@@ -14,6 +14,8 @@ shares:
path: /mnt/HDD/Pictures
backups:
path: /mnt/HDD/Backups
downloads:
path: /mnt/HDD/Downloads
youtube:
path: /mnt/HDD/Youtube
misc:
@@ -24,3 +26,5 @@ shares:
path: /mnt/HDD/images
kidsyoutube:
path: /mnt/HDD/Kids/YouTube
comics:
path: /mnt/HDD/Comics

View File

@@ -107,6 +107,18 @@ container:
runAsUser: 1000
runAsGroup: 1000
# Init Containers (optional)
# Add init containers, for example to fix permissions
initContainers:
- name: fix-permissions
image: busybox
command: ["sh", "-c", "chown -R 1000:1000 /data"]
volumeMounts:
- name: data
mountPath: /data
securityContext:
runAsUser: 0
# Command and args (optional)
# Override the container's default command/entrypoint
# Useful for initialization scripts or custom startup logic

View File

@@ -344,6 +344,10 @@ spec:
hostNetwork: {{ .Values.deployment.hostNetwork }}
{{- end }}
{{- include "common.dnsConfig" . | nindent 6 }}
{{- if .Values.initContainers }}
initContainers:
{{- toYaml .Values.initContainers | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"