aadd calibre
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: calibre-web-automated
|
||||||
|
version: 1.0.0
|
||||||
|
description: Calibre Web Automated
|
||||||
|
keywords:
|
||||||
|
- calibre-web-automated
|
||||||
|
- books
|
||||||
|
home: https://wiki.alexlebens.dev/doc/calibre-web-automated-1SMf1jPFsb
|
||||||
|
sources:
|
||||||
|
- https://github.com/crocodilestick/Calibre-Web-Automator
|
||||||
|
- https://hub.docker.com/r/crocodilestick/calibre-web-automated
|
||||||
|
- https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template
|
||||||
|
maintainers:
|
||||||
|
- name: alexlebens
|
||||||
|
dependencies:
|
||||||
|
- name: app-template
|
||||||
|
alias: calibre-web-automated
|
||||||
|
repository: https://bjw-s.github.io/helm-charts/
|
||||||
|
version: 3.6.1
|
||||||
|
icon: https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/calibre-web.png
|
||||||
|
appVersion: V2.1.2
|
@@ -0,0 +1,82 @@
|
|||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: calibre-web-automated-gmail-config
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: calibre-web-automated-gmail-config
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: web
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: vault
|
||||||
|
data:
|
||||||
|
- secretKey: gmail.json
|
||||||
|
remoteRef:
|
||||||
|
conversionStrategy: Default
|
||||||
|
decodingStrategy: None
|
||||||
|
key: /cl01tl/calibre-web/gmail
|
||||||
|
metadataPolicy: None
|
||||||
|
property: gmail.json
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# apiVersion: external-secrets.io/v1beta1
|
||||||
|
# kind: ExternalSecret
|
||||||
|
# metadata:
|
||||||
|
# name: calibre-web-automated-config-backup-secret
|
||||||
|
# namespace: {{ .Release.Namespace }}
|
||||||
|
# labels:
|
||||||
|
# app.kubernetes.io/name: calibre-web-automated-config-backup-secret
|
||||||
|
# app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
# app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
# app.kubernetes.io/component: backup
|
||||||
|
# app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
# spec:
|
||||||
|
# secretStoreRef:
|
||||||
|
# kind: ClusterSecretStore
|
||||||
|
# name: vault
|
||||||
|
# target:
|
||||||
|
# template:
|
||||||
|
# mergePolicy: Merge
|
||||||
|
# engineVersion: v2
|
||||||
|
# data:
|
||||||
|
# RESTIC_REPOSITORY: "{{ `{{ .BUCKET_ENDPOINT }}` }}/calibre-web-automated/calibre-web-automated-config"
|
||||||
|
# data:
|
||||||
|
# - secretKey: BUCKET_ENDPOINT
|
||||||
|
# remoteRef:
|
||||||
|
# conversionStrategy: Default
|
||||||
|
# decodingStrategy: None
|
||||||
|
# key: /cl01tl/volsync/restic/config
|
||||||
|
# metadataPolicy: None
|
||||||
|
# property: S3_BUCKET_ENDPOINT
|
||||||
|
# - secretKey: RESTIC_PASSWORD
|
||||||
|
# remoteRef:
|
||||||
|
# conversionStrategy: Default
|
||||||
|
# decodingStrategy: None
|
||||||
|
# key: /cl01tl/volsync/restic/config
|
||||||
|
# metadataPolicy: None
|
||||||
|
# property: RESTIC_PASSWORD
|
||||||
|
# - secretKey: AWS_DEFAULT_REGION
|
||||||
|
# remoteRef:
|
||||||
|
# conversionStrategy: Default
|
||||||
|
# decodingStrategy: None
|
||||||
|
# key: /cl01tl/volsync/restic/config
|
||||||
|
# metadataPolicy: None
|
||||||
|
# property: AWS_DEFAULT_REGION
|
||||||
|
# - secretKey: AWS_ACCESS_KEY_ID
|
||||||
|
# remoteRef:
|
||||||
|
# conversionStrategy: Default
|
||||||
|
# decodingStrategy: None
|
||||||
|
# key: /digital-ocean/home-infra/volsync-backups
|
||||||
|
# metadataPolicy: None
|
||||||
|
# property: access_key
|
||||||
|
# - secretKey: AWS_SECRET_ACCESS_KEY
|
||||||
|
# remoteRef:
|
||||||
|
# conversionStrategy: Default
|
||||||
|
# decodingStrategy: None
|
||||||
|
# key: /digital-ocean/home-infra/volsync-backups
|
||||||
|
# metadataPolicy: None
|
||||||
|
# property: secret_key
|
@@ -0,0 +1,40 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: calibre-web-automated-nfs-storage
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: calibre-web-automated-nfs-storage
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: storage
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
volumeName: calibre-web-automated-nfs-storage
|
||||||
|
storageClassName: nfs-client
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: calibre-web-automated-ingest-nfs-storage
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: calibre-web-automated-ingest-nfs-storage
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: storage
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
volumeName: calibre-web-automated-ingest-nfs-storage
|
||||||
|
storageClassName: nfs-client
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
@@ -0,0 +1,52 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: calibre-web-automated-nfs-storage
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: calibre-web-automated-nfs-storage
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: storage
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
storageClassName: nfs-client
|
||||||
|
capacity:
|
||||||
|
storage: 1Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
nfs:
|
||||||
|
path: /volume2/Storage/Calibre
|
||||||
|
server: synologybond.alexlebens.net
|
||||||
|
mountOptions:
|
||||||
|
- vers=4
|
||||||
|
- minorversion=1
|
||||||
|
- noac
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: calibre-web-automated-ingest-nfs-storage
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: calibre-web-automated-ingest-nfs-storage
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: storage
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
storageClassName: nfs-client
|
||||||
|
capacity:
|
||||||
|
storage: 1Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
nfs:
|
||||||
|
path: /volume2/Storage/Calibre Import
|
||||||
|
server: synologybond.alexlebens.net
|
||||||
|
mountOptions:
|
||||||
|
- vers=4
|
||||||
|
- minorversion=1
|
||||||
|
- noac
|
@@ -0,0 +1,30 @@
|
|||||||
|
# apiVersion: volsync.backube/v1alpha1
|
||||||
|
# kind: ReplicationSource
|
||||||
|
# metadata:
|
||||||
|
# name: calibre-web-automated-config-backup-source
|
||||||
|
# namespace: {{ .Release.Namespace }}
|
||||||
|
# labels:
|
||||||
|
# app.kubernetes.io/name: calibre-web-automated-config-backup-source
|
||||||
|
# app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
# app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
# app.kubernetes.io/component: backup
|
||||||
|
# app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
# spec:
|
||||||
|
# sourcePVC: calibre-web-automated-config
|
||||||
|
# trigger:
|
||||||
|
# schedule: 0 0 */3 * *
|
||||||
|
# restic:
|
||||||
|
# pruneIntervalDays: 14
|
||||||
|
# repository: calibre-web-automated-config-backup-secret
|
||||||
|
# retain:
|
||||||
|
# hourly: 1
|
||||||
|
# daily: 1
|
||||||
|
# weekly: 1
|
||||||
|
# monthly: 2
|
||||||
|
# yearly: 4
|
||||||
|
# moverSecurityContext:
|
||||||
|
# runAsUser: 1000
|
||||||
|
# runAsGroup: 100
|
||||||
|
# copyMethod: Snapshot
|
||||||
|
# storageClassName: ceph-block
|
||||||
|
# volumeSnapshotClassName: ceph-blockpool-snapshot
|
151
clusters/cl01tl/applications/calibre-web-automated/values.yaml
Normal file
151
clusters/cl01tl/applications/calibre-web-automated/values.yaml
Normal file
@@ -0,0 +1,151 @@
|
|||||||
|
calibre-web-automated:
|
||||||
|
controllers:
|
||||||
|
main:
|
||||||
|
type: deployment
|
||||||
|
replicas: 1
|
||||||
|
strategy: Recreate
|
||||||
|
revisionHistoryLimit: 3
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
|
image:
|
||||||
|
repository: crocodilestick/calibre-web-automated
|
||||||
|
tag: V2.1.2@sha256:64cc0b6a563ef626c0f905792d6be976251149b30ee1e7fb49d60ef3ee966cb6
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: US/Central
|
||||||
|
- name: PUID
|
||||||
|
value: 1000
|
||||||
|
- name: PGID
|
||||||
|
value: 100
|
||||||
|
- name: DOCKER_MODS
|
||||||
|
value: lscr.io/linuxserver/mods:universal-calibre-v7.23.0
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
downloader:
|
||||||
|
type: deployment
|
||||||
|
replicas: 1
|
||||||
|
strategy: Recreate
|
||||||
|
revisionHistoryLimit: 3
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/calibrain/calibre-web-automated-book-downloader
|
||||||
|
tag: latest@sha256:29757639bff2263a0de383e6b4855b09457e6c5944f41e934247bbb9bec5c8b7
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
env:
|
||||||
|
- name: FLASK_PORT
|
||||||
|
value: 8084
|
||||||
|
- name: UID
|
||||||
|
value: 1000
|
||||||
|
- name: GID
|
||||||
|
value: 100
|
||||||
|
- name: USE_CF_BYPASS
|
||||||
|
value: true
|
||||||
|
- name: CLOUDFLARE_PROXY_URL
|
||||||
|
value: http://localhost:8000
|
||||||
|
- name: INGEST_DIR
|
||||||
|
value: /cwa-book-ingest
|
||||||
|
- name: BOOK_LANGUAGE
|
||||||
|
value: end
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 256Mi
|
||||||
|
bypass:
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/sarperavci/cloudflarebypassforscraping
|
||||||
|
tag: latest@sha256:e937223b9321168efec4ce4b60958d399b6dde37791ea6dc67d05b057c0f167e
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 128Mi
|
||||||
|
serviceAccount:
|
||||||
|
create: true
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
controller: main
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 8083
|
||||||
|
targetPort: 8083
|
||||||
|
protocol: HTTP
|
||||||
|
downloader:
|
||||||
|
controller: downloader
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 8084
|
||||||
|
targetPort: 8084
|
||||||
|
protocol: HTTP
|
||||||
|
ingress:
|
||||||
|
tailscale-main:
|
||||||
|
enabled: true
|
||||||
|
className: tailscale
|
||||||
|
hosts:
|
||||||
|
- host: calibre-cl01tl
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
service:
|
||||||
|
name: calibre-web-automated-main
|
||||||
|
port: 8083
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- calibre-cl01tl
|
||||||
|
tailscale-downloader:
|
||||||
|
enabled: true
|
||||||
|
className: tailscale
|
||||||
|
hosts:
|
||||||
|
- host: calibre-downloader-cl01tl
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
service:
|
||||||
|
name: calibre-web-automated-downloader
|
||||||
|
port: 8084
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- calibre-downloader-cl01tl
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
storageClass: ceph-block
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
size: 5Gi
|
||||||
|
retain: true
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
- path: /config
|
||||||
|
readOnly: false
|
||||||
|
gmail:
|
||||||
|
enabled: true
|
||||||
|
type: secret
|
||||||
|
name: calibre-web-automated-gmail-config
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
- path: /app/calibre-web/gmail.json
|
||||||
|
readOnly: true
|
||||||
|
mountPropagation: None
|
||||||
|
subPath: gmail.json
|
||||||
|
books:
|
||||||
|
existingClaim: calibre-web-automated-nfs-storage
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
- path: /calibre-library
|
||||||
|
readOnly: false
|
||||||
|
ingest:
|
||||||
|
existingClaim: calibre-web-automated-ingest-nfs-storage
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
- path: /cwa-book-ingest
|
||||||
|
readOnly: false
|
||||||
|
downloader:
|
||||||
|
main:
|
||||||
|
- path: /cwa-book-ingest
|
||||||
|
readOnly: false
|
Reference in New Issue
Block a user