initial commit
This commit is contained in:
commit
dc7d39e5f1
12 changed files with 810 additions and 0 deletions
62
Kavita/deployment.yml
Normal file
62
Kavita/deployment.yml
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: kavita
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: kavita
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: kavita
|
||||
spec:
|
||||
containers:
|
||||
- name: kavita
|
||||
image: jvmilazz0/kavita:latest
|
||||
resources:
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
cpu: "1"
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
name: http
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- name: kavita-config
|
||||
mountPath: /kavita/config
|
||||
- name: kavita-data
|
||||
mountPath: /kavita/library
|
||||
# readinessProbe:
|
||||
# httpGet:
|
||||
# path: /api/health
|
||||
# port: http
|
||||
# failureThreshold: 5
|
||||
# periodSeconds: 10
|
||||
# livenessProbe:
|
||||
# httpGet:
|
||||
# path: /api/health
|
||||
# port: http
|
||||
# failureThreshold: 5
|
||||
# periodSeconds: 10
|
||||
volumes:
|
||||
- name: kavita-config
|
||||
# persistentVolumeClaim:
|
||||
# claimName: kavita-config
|
||||
hostPath:
|
||||
path: /zfs/docker/kavita
|
||||
- name: kavita-data
|
||||
hostPath:
|
||||
path: /mnt/nfs/books
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: kavita-config
|
||||
spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 512Mi
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
22
Kavita/ingress.yml
Normal file
22
Kavita/ingress.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: kavita
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-production"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- kavita.foxhawk.co.uk
|
||||
secretName: kavita-tls
|
||||
rules:
|
||||
- host: kavita.foxhawk.co.uk
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: kavita
|
||||
port:
|
||||
number: 80
|
||||
10
Kavita/service.yml
Normal file
10
Kavita/service.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: kavita
|
||||
spec:
|
||||
selector:
|
||||
app: kavita
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 5000
|
||||
Loading…
Add table
Add a link
Reference in a new issue