Files
media-charts/sabnzbd/templates/deployment.yaml
2025-01-26 18:02:40 +01:00

47 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "sabnzbd.fullname" . }}
labels:
{{- include "sabnzbd.labels" . | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "sabnzbd.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "sabnzbd.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- range .Values.env }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
volumeMounts:
- name: config
mountPath: {{ .Values.persistence.config.mountPath }}
- name: downloads
mountPath: {{ .Values.persistence.downloads.mountPath }}
- name: incomplete
mountPath: {{ .Values.persistence.incomplete.mountPath }}
volumes:
- name: config
persistentVolumeClaim:
claimName: {{ .Values.persistence.config.claimName }}
- name: downloads
persistentVolumeClaim:
claimName: {{ .Values.persistence.downloads.claimName }}
- name: incomplete
persistentVolumeClaim:
claimName: {{ .Values.persistence.incomplete.claimName }}