feat(charts): added calibre-web-automated
This commit is contained in:
9 files changed
+217
No files matched your search
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: calibre-web-automated
|
||||||
|
description: A Helm chart for calibere-web-automated
|
||||||
|
|
||||||
|
# A chart can be either an 'application' or a 'library' chart.
|
||||||
|
#
|
||||||
|
# Application charts are a collection of templates that can be packaged into versioned archives
|
||||||
|
# to be deployed.
|
||||||
|
#
|
||||||
|
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
||||||
|
# a dependency of application charts to inject those utilities and functions into the rendering
|
||||||
|
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
||||||
|
type: application
|
||||||
|
|
||||||
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
|
# to the chart and its templates, including the app version.
|
||||||
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
|
version: 1.2.0-release-v4-0-6
|
||||||
|
|
||||||
|
# This is the version number of the application being deployed. This version number should be
|
||||||
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
|
# It is recommended to use it with quotes.
|
||||||
|
appVersion: v4.0.6
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-consume-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
storageClassName: longhorn
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-ingress
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: {{ required "A Cluster-Issuer must be provided" .Values.ingress.clusterIssuer}}
|
||||||
|
nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.cwa.maxUploadFileSize }}
|
||||||
|
nginx.org/client-max-body-size: {{ .Values.cwa.maxUploadFileSize }}
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: {{ required "A Domain/Host must be provided" .Values.ingress.domain }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-service
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- {{ required "A Domain/Host must be provided" .Values.ingress.domain }}
|
||||||
|
secretName: tls-{{ .Chart.Name }}-{{ .Release.Name }}-ingress
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.cwa.storage }}
|
||||||
|
storageClassName: longhorn
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: onepassword.com/v1
|
||||||
|
kind: OnePasswordItem
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-secret
|
||||||
|
spec:
|
||||||
|
itemPath: {{ .Values.secrets.cwaSecretRef }}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-sfs
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
|
name: http
|
||||||
|
type: ClusterIP
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-sfs
|
||||||
|
labels:
|
||||||
|
app: {{ .Chart.Name }}-{{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-sfs
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-sfs
|
||||||
|
labels:
|
||||||
|
app: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-sfs
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-container
|
||||||
|
image: "ghcr.io/crocodilestick/calibre-web-automated:{{ .Chart.AppVersion }}"
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 8083
|
||||||
|
name: http
|
||||||
|
protocol: TCP
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: "{{ .Values.cwa.timezone }}"
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: HARDCOVER_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-secret
|
||||||
|
key: hardcover-api-token
|
||||||
|
- name: CALIBRE_CONFIG_DIR
|
||||||
|
value: "/config/.config/calibre"
|
||||||
|
- name: NETWORK_SHARE_MODE
|
||||||
|
value: "false"
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: "/config"
|
||||||
|
name: cwa
|
||||||
|
subPath: config/
|
||||||
|
- mountPath: "/calibre-library"
|
||||||
|
name: cwa
|
||||||
|
subPath: calibre-library/
|
||||||
|
- mountPath: "/config/.config/calibre/plugins"
|
||||||
|
name: cwa
|
||||||
|
subPath: calibre-plugins/
|
||||||
|
- mountPath: "/config/.config/calibre/customize.py.json"
|
||||||
|
name: cwa-plugins-config
|
||||||
|
subPath: customize.py.json
|
||||||
|
- mountPath: "/cwa-book-ingest"
|
||||||
|
name: cwa-consume
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "{{ .Values.cwa.resources.requests.memory }}"
|
||||||
|
cpu: "{{ .Values.cwa.resources.requests.cpu }}"
|
||||||
|
ephemeral-storage: "{{ .Values.cwa.resources.requests.ephemeralStorage }}"
|
||||||
|
limits:
|
||||||
|
memory: "{{ .Values.cwa.resources.limits.memory }}"
|
||||||
|
cpu: "{{ .Values.cwa.resources.limits.cpu }}"
|
||||||
|
ephemeral-storage: "{{ .Values.cwa.resources.limits.ephemeralStorage }}"
|
||||||
|
automountServiceAccountToken: false
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 1000
|
||||||
|
fsGroupChangePolicy: Always
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: cwa
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-pvc
|
||||||
|
- name: cwa-consume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-consume-pvc
|
||||||
|
- name: cwa-plugins-config
|
||||||
|
secret:
|
||||||
|
secretName: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-secret
|
||||||
|
items:
|
||||||
|
- key: calibre-plugins
|
||||||
|
path: customize.py.json
|
||||||
|
mode: 0644
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
secrets:
|
||||||
|
cwaSecretRef: null
|
||||||
|
|
||||||
|
cwa:
|
||||||
|
storage: 10Gi
|
||||||
|
timezone: "UTC"
|
||||||
|
maxUploadFileSize: "10m"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 0.1
|
||||||
|
memory: 512Mi
|
||||||
|
ephemeralStorage: 100Mi
|
||||||
|
limits:
|
||||||
|
cpu: 1
|
||||||
|
memory: 1024Mi
|
||||||
|
ephemeralStorage: 200Mi
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
clusterIssuer: "letsencrypt-issuer"
|
||||||
|
domain: null
|
||||||
Reference in new issue
Block a user