Skip to content

Commit

Permalink
feat(komga): add Komga application with HelmRelease, PVC, and Kustomi…
Browse files Browse the repository at this point in the history
…zation configurations
  • Loading branch information
axeII committed Dec 22, 2024
1 parent 203d5fa commit 9116560
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kubernetes/apps/default/piped/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@ spec:
kind: GitRepository
name: home-kubernetes
wait: false
# dependsOn:
# - name: longhorn
# - name: external-secrets-stores
85 changes: 85 additions & 0 deletions kubernetes/apps/media/komga/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/axeII/crds/main/helmrelease_v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app komga
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.5.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
values:
controllers:
komga:
labels:
nfsMount: "true"
annotations:
reloader.stakater.com/auto: "true"
containers:
app:
image:
repository: gotson/komga
tag: "1.14.0@sha256:243e6c3d06bf64adf29923f9f6d6a1c2ef4ffc5a000317fa90ab2431f6cf978d"
env:
TZ: ${TIMEZONE}
SERVER_PORT: &port 8080
resources:
requests:
cpu: 15m
memory: 1Gi
limits:
memory: 4Gi
service:
app:
controller: *app
ports:
http:
port: *port
ingress:
app:
className: internal
annotations:
gatus.io/enabled: "true"
hajimari.io/icon: "mdi:thought-bubble-outline"
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Media
gethomepage.dev/name: Komga
gethomepage.dev/href: https://komga.${SECRET_DOMAIN}
gethomepage.dev/icon: komga.png
gethomepage.dev/description: Comic/Ebook Web Reader
gethomepage.dev/widget.type: komga
gethomepage.dev/widget.url: http://komga.media.svc.cluster.local:8080
gethomepage.dev/widget.username: "{{HOMEPAGE_VAR_KOMGA_USERNAME}}"
gethomepage.dev/widget.password: "{{HOMEPAGE_VAR_KOMGA_PASSWORD}}"
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_DOMAIN}"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts: [*host]
persistence:
config:
existingClaim: komga-config
media:
type: nfs
server: 192.168.69.69
path: /mnt/ThiccBoi/SiccBoi/data/media/Literature
globalMounts:
- path: /data
6 changes: 6 additions & 0 deletions kubernetes/apps/media/komga/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./pvc.yaml
- ./helmrelease.yaml
13 changes: 13 additions & 0 deletions kubernetes/apps/media/komga/app/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: komga-config
namespace: media
spec:
accessModes:
- ReadWriteOnce
storageClassName: ceph-block
resources:
requests:
storage: 1Gi
21 changes: 21 additions & 0 deletions kubernetes/apps/media/komga/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# yaml-language-server: $schema=https://lds-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app komga
namespace: flux-system
spec:
targetNamespace: media
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/apps/media/komga/app
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
wait: false # no flux ks dependents
interval: 30m
retryInterval: 1m
timeout: 5m
1 change: 1 addition & 0 deletions kubernetes/apps/media/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ resources:
- ./flaresolverr/ks.yaml
- ./unpackerr/ks.yaml
- ./recyclarr/ks.yaml
- ./komga/ks.yaml

0 comments on commit 9116560

Please sign in to comment.