Use shelfmark instead of RMAB
This commit is contained in:
parent
155988b20c
commit
faacf921af
4 changed files with 120 additions and 0 deletions
67
services/shelfmark/shelfmark-deployment.yaml
Normal file
67
services/shelfmark/shelfmark-deployment.yaml
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: shelfmark
|
||||
namespace: default
|
||||
annotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: shelfmark
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: shelfmark
|
||||
spec:
|
||||
containers:
|
||||
- name: shelfmark
|
||||
image: ghcr.io/calibrain/shelfmark:latest
|
||||
env:
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: TZ
|
||||
value: America/New_York
|
||||
- name: DISABLE_LOCAL_AUTH
|
||||
value: "true"
|
||||
- name: OIDC_ENABLE
|
||||
value: "true"
|
||||
- name: OIDC_ISSUER
|
||||
value: "https://sso.mynest.love/realms/nest"
|
||||
- name: OIDC_CLIENT_ID
|
||||
value: "shelfmark"
|
||||
- name: OIDC_ADMIN_GROUP
|
||||
value: "admin"
|
||||
ports:
|
||||
- containerPort: 8084
|
||||
name: web-ui
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: shelfmark-config
|
||||
- mountPath: /books
|
||||
name: calibre-ingest
|
||||
- mountPath: /audiobooks
|
||||
name: audiobookshelf
|
||||
- mountPath: /downloads
|
||||
name: downloads
|
||||
volumes:
|
||||
- name: shelfmark-config
|
||||
persistentVolumeClaim:
|
||||
claimName: shelfmark-config-pvc
|
||||
- name: calibre-ingest
|
||||
nfs:
|
||||
server: robin.home.nest
|
||||
path: /yarr/media/books/calibre-ingest
|
||||
- name: audiobookshelf
|
||||
nfs:
|
||||
server: robin.home.nest
|
||||
path: /yarr/media/audiobooks
|
||||
- name: downloads
|
||||
nfs:
|
||||
server: robin.home.nest
|
||||
path: /yarr/downloads
|
||||
25
services/shelfmark/shelfmark-ingress.yaml
Normal file
25
services/shelfmark/shelfmark-ingress.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: shelfmark-ingress
|
||||
namespace: default
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- magpie.mynest.love
|
||||
secretName: shelfmark-tls
|
||||
rules:
|
||||
- host: magpie.mynest.love
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: shelfmark
|
||||
port:
|
||||
name: http-web
|
||||
14
services/shelfmark/shelfmark-pvcs.yaml
Normal file
14
services/shelfmark/shelfmark-pvcs.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: shelfmark-config-pvc
|
||||
labels:
|
||||
recurring-job.longhorn.io/source: "enabled"
|
||||
recurring-job-group.longhorn.io/app-config-group: "enabled"
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
14
services/shelfmark/shelfmark-service.yaml
Normal file
14
services/shelfmark/shelfmark-service.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: shelfmark
|
||||
name: shelfmark
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: http-web
|
||||
port: 80
|
||||
targetPort: web-ui
|
||||
selector:
|
||||
app: shelfmark
|
||||
Loading…
Add table
Reference in a new issue