Skip to content

Commit

Permalink
feat(calibre): add calibre
Browse files Browse the repository at this point in the history
  • Loading branch information
blackjid committed Jan 18, 2025
1 parent be2938f commit 1e2154c
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 0 deletions.
101 changes: 101 additions & 0 deletions kubernetes/apps/media/calibre/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: calibre
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
dependsOn:
- name: longhorn
namespace: longhorn-system
values:
controllers:
calibre:
containers:
app:
image:
repository: lscr.io/linuxserver/calibre
tag: 7.20.0
env:
TZ: America/Santiago
TITLE: Calibre
PUID: 65534
PGID: 65534
probes:
liveness:
enabled: true
readiness:
enabled: true
startup:
enabled: true
spec:
failureThreshold: 30
periodSeconds: 5
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: ["ALL"]
add: ["seccomp:unconfined"]
resources:
requests:
cpu: 100m
memory: 250M
limits:
memory: 2Gi
defaultPodOptions:
securityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
seccompProfile: { type: RuntimeDefault }
service:
main:
controller: calibre
ports:
http:
port: 8080
web:
port: 8081
ingress:
main:
className: internal
annotations:
external-dns.alpha.kubernetes.io/target: internal.donoso.family
hosts:
- host: calibre.donoso.family
paths:
- path: /
pathType: Prefix
service:
identifier: main
port: http
persistence:
config:
existingClaim: calibre
tmp:
type: emptyDir
# TODO: move metadata.db to a separate volume
media:
type: nfs
server: 192.168.86.90
path: /volume1/media
globalMounts:
- path: /media
7 changes: 7 additions & 0 deletions kubernetes/apps/media/calibre/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ../../../../templates/volsync
27 changes: 27 additions & 0 deletions kubernetes/apps/media/calibre/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app calibre
namespace: flux-system
spec:
targetNamespace: media
commonMetadata:
labels:
app.kubernetes.io/name: *app
interval: 30m
timeout: 5m
path: ./kubernetes/apps/media/calibre/app
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
wait: false
dependsOn:
- name: external-secrets-stores
- name: volsync
postBuild:
substitute:
APP: *app
VOLSYNC_CAPACITY: 2Gi
1 change: 1 addition & 0 deletions kubernetes/apps/media/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ resources:
- ./namespace.yaml
# Flux-Kustomizations
- ./bazarr/ks.yaml
- ./calibre/ks.yaml
- ./calibre-web/ks.yaml
- ./flaresolverr/ks.yaml
- ./overseerr/ks.yaml
Expand Down

0 comments on commit 1e2154c

Please sign in to comment.