initial refactor

This commit is contained in:
2025-06-07 16:33:55 -04:00
parent 5ac011f02b
commit b09446668d
249 changed files with 74 additions and 186 deletions

View File

@@ -0,0 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: calibre-web-config
namespace: calibre-web
data:
PUID: "1000"
PGID: "1000"
TZ: "America/Toronto"
DOCKER_MODS: "linuxserver/mods:universal-calibre"

View File

@@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: calibre-web
namespace: calibre-web
spec:
selector:
matchLabels:
app: calibre-web
template:
metadata:
labels:
app: calibre-web
spec:
containers:
- name: calibre-web
image: lscr.io/linuxserver/calibre-web:latest
imagePullPolicy: Always
envFrom:
- configMapRef:
name: calibre-web-config
optional: false
ports:
- containerPort: 8083
name: http
protocol: TCP
volumeMounts:
- name: config
mountPath: /config
- mountPath: /books
name: data
volumes:
- name: config
persistentVolumeClaim:
claimName: calibre-web-config
- name: data
persistentVolumeClaim:
claimName: calibre-web-data

View File

@@ -0,0 +1,12 @@
apiVersion: externaldns.k8s.io/v1alpha1
kind: DNSEndpoint
metadata:
name: calibre.michaelthomson.dev
namespace: calibre-web
spec:
endpoints:
- dnsName: calibre.michaelthomson.dev
recordTTL: 180
recordType: CNAME
targets:
- server.michaelthomson.dev

View File

@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: calibre-web
namespace: calibre-web
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
rules:
- host: calibre.michaelthomson.dev
http:
paths:
- pathType: ImplementationSpecific
path: /
backend:
service:
name: calibre-web
port:
name: http
tls:
- hosts:
- calibre.michaelthomson.dev
secretName: letsencrypt-wildcard-cert-michaelthomson.dev

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: calibre-web

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: calibre-web-config
namespace: calibre-web
spec:
resources:
requests:
storage: 4Gi
storageClassName: longhorn
accessModes:
- ReadWriteOnce

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: calibre-web-data
namespace: calibre-web
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 8Gi

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: calibre-web
namespace: calibre-web
spec:
selector:
app: calibre-web
ports:
- port: 80
targetPort: http
name: http