Upload files to "apps/calibre-web-gitops"
This commit is contained in:
21
apps/calibre-web-gitops/application.yaml
Normal file
21
apps/calibre-web-gitops/application.yaml
Normal 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
|
||||||
33
apps/calibre-web-gitops/deployment.yaml
Normal file
33
apps/calibre-web-gitops/deployment.yaml
Normal 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
|
||||||
25
apps/calibre-web-gitops/ingress.yaml
Normal file
25
apps/calibre-web-gitops/ingress.yaml
Normal 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
|
||||||
5
apps/calibre-web-gitops/namespace.yaml
Normal file
5
apps/calibre-web-gitops/namespace.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: calibre-web
|
||||||
12
apps/calibre-web-gitops/pvc-books.yaml
Normal file
12
apps/calibre-web-gitops/pvc-books.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user