sabnzbd
This commit is contained in:
46
sabnzbd/templates/deployment.yaml
Normal file
46
sabnzbd/templates/deployment.yaml
Normal file
@ -0,0 +1,46 @@
|
||||
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 }}
|
Reference in New Issue
Block a user