Upload files to "apps/calibre-web-gitops"

This commit is contained in:
2025-11-26 02:17:48 +00:00
parent 2884eefbb7
commit 561f16d377
5 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: calibre-web
namespace: argocd
spec:
project: default
source:
repoURL: https://gitea.thedevops.dev/vlad/calibre-web-gitops
path: calibre-web
targetRevision: HEAD
destination:
server: https://kubernetes.default.svc
namespace: calibre-web
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: calibre-web
namespace: calibre-web
spec:
replicas: 1
selector:
matchLabels:
app: calibre-web
template:
metadata:
labels:
app: calibre-web
spec:
containers:
- name: calibre-web
image: lscr.io/linuxserver/calibre-web:latest
ports:
- containerPort: 8083
volumeMounts:
- name: config
mountPath: /config
- name: books
mountPath: /books
volumes:
- name: config
persistentVolumeClaim:
claimName: calibre-config
- name: books
persistentVolumeClaim:
claimName: calibre-books

View File

@@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: calibre-web
namespace: calibre-web
annotations:
kubernetes.io/ingress.class: traefik
cert-manager.io/cluster-issuer: letsencrypt-http
spec:
tls:
- hosts:
- books.thedevops.dev
secretName: calibre-tls
rules:
- host: books.thedevops.dev
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: calibre-web
port:
number: 8083

View File

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

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: calibre-books
namespace: calibre-web
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: longhorn
resources:
requests:
storage: 50Gi