mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
add komga
This commit is contained in:
7
apps/charts/komga/Chart.yaml
Normal file
7
apps/charts/komga/Chart.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
version: 1.0.0
|
||||||
|
name: komga
|
||||||
|
dependencies:
|
||||||
|
- name: common
|
||||||
|
version: 1.0.0
|
||||||
|
repository: file://../../common
|
||||||
1
apps/charts/komga/templates/deployment.yaml
Normal file
1
apps/charts/komga/templates/deployment.yaml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{{ include "common.deployment" . }}
|
||||||
1
apps/charts/komga/templates/pvc.yaml
Normal file
1
apps/charts/komga/templates/pvc.yaml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{{ include "common.pvc" . }}
|
||||||
1
apps/charts/komga/templates/service.yaml
Normal file
1
apps/charts/komga/templates/service.yaml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{{ include "common.service" . }}
|
||||||
1
apps/charts/komga/templates/virtual-service.yaml
Normal file
1
apps/charts/komga/templates/virtual-service.yaml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{{ include "common.virtualService" . }}
|
||||||
55
apps/charts/komga/values.yaml
Normal file
55
apps/charts/komga/values.yaml
Normal 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
|
||||||
@@ -14,6 +14,8 @@ shares:
|
|||||||
path: /mnt/HDD/Pictures
|
path: /mnt/HDD/Pictures
|
||||||
backups:
|
backups:
|
||||||
path: /mnt/HDD/Backups
|
path: /mnt/HDD/Backups
|
||||||
|
downloads:
|
||||||
|
path: /mnt/HDD/Downloads
|
||||||
youtube:
|
youtube:
|
||||||
path: /mnt/HDD/Youtube
|
path: /mnt/HDD/Youtube
|
||||||
misc:
|
misc:
|
||||||
@@ -24,3 +26,5 @@ shares:
|
|||||||
path: /mnt/HDD/images
|
path: /mnt/HDD/images
|
||||||
kidsyoutube:
|
kidsyoutube:
|
||||||
path: /mnt/HDD/Kids/YouTube
|
path: /mnt/HDD/Kids/YouTube
|
||||||
|
comics:
|
||||||
|
path: /mnt/HDD/Comics
|
||||||
|
|||||||
@@ -107,6 +107,18 @@ container:
|
|||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 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)
|
# Command and args (optional)
|
||||||
# Override the container's default command/entrypoint
|
# Override the container's default command/entrypoint
|
||||||
# Useful for initialization scripts or custom startup logic
|
# Useful for initialization scripts or custom startup logic
|
||||||
|
|||||||
@@ -344,6 +344,10 @@ spec:
|
|||||||
hostNetwork: {{ .Values.deployment.hostNetwork }}
|
hostNetwork: {{ .Values.deployment.hostNetwork }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "common.dnsConfig" . | nindent 6 }}
|
{{- include "common.dnsConfig" . | nindent 6 }}
|
||||||
|
{{- if .Values.initContainers }}
|
||||||
|
initContainers:
|
||||||
|
{{- toYaml .Values.initContainers | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user