Files
HelmChartSammlung/charts/calibre-web/templates/deployment.yaml
Marko Oldenburg 4425a0e703
All checks were successful
Build Helm Chart / helm-package (push) Successful in 4s
Update Calibre-Web Helm chart metadata and configurations
Updated the Calibre-Web Helm chart's metadata in `Chart.yaml`,
including a more descriptive app description, updated version to
0.1.2, and added keywords, home URL, source references, and
maintainer information.

In `deployment.yaml`, modified the image reference to allow
a customizable image tag instead of defaulting to the app version.

In `values.yaml`, adjusted the size of persistent storage
volumes for `data` and `config`, changing them to 2Gi and
50Mi respectively. This ensures more manageable resource
allocation for deployments, addressing potential over-provisioning.

These changes collectively enhance the usability and
maintainability of the Helm chart for Calibre-Web deployments.
2025-12-10 07:58:33 +01:00

92 lines
2.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "calibre-web.fullname" . }}
labels:
{{- include "calibre-web.labels" . | nindent 4 }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "calibre-web.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "calibre-web.selectorLabels" . | nindent 8 }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "calibre-web.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{ toYaml .Values.env | nindent 12 }}
ports:
- name: http
containerPort: 8083
protocol: TCP
startupProbe:
httpGet:
path: /
port: http
failureThreshold: 30
periodSeconds: 5
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
volumeMounts:
- name: data
mountPath: /books
- name: config
mountPath: /config
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: data
persistentVolumeClaim:
{{- if .Values.persistence.data.claimName }}
claimName: "{{ .Values.persistence.data.claimName }}"
{{- else }}
claimName: "{{ template "calibre-web.fullname" . }}-data"
{{- end }}
- name: config
persistentVolumeClaim:
{{- if .Values.persistence.config.claimName }}
claimName: "{{ .Values.persistence.config.claimName }}"
{{- else }}
claimName: "{{ template "calibre-web.fullname" . }}-config"
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}