mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 11:33:17 +00:00
chore: Add qBittorrent Helm chart with deployment, service, ingress, and values files
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
app.kubernetes.io/component: torrent
|
||||
annotations:
|
||||
version-source: {{ index .Chart.Annotations "version-source" }}
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Release.Name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Release.Name }}
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
env:
|
||||
- name: WEBUI_PORT
|
||||
value: {{ .Values.webuiPort | quote }}
|
||||
- name: TORRENTING_PORT
|
||||
value: {{ .Values.torrentPort | quote }}
|
||||
{{- range $key, $value := .Values.env }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.webuiPort }}
|
||||
name: webui
|
||||
- containerPort: {{ .Values.torrentPort }}
|
||||
name: torrent-tcp
|
||||
protocol: TCP
|
||||
- containerPort: {{ .Values.torrentPort }}
|
||||
name: torrent-udp
|
||||
protocol: UDP
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- name: downloads
|
||||
mountPath: /downloads
|
||||
volumes:
|
||||
- name: config
|
||||
hostPath:
|
||||
path: {{ .Values.volumes.config.hostPath }}
|
||||
type: DirectoryOrCreate
|
||||
- name: downloads
|
||||
hostPath:
|
||||
path: {{ .Values.volumes.downloads.hostPath }}
|
||||
type: DirectoryOrCreate
|
||||
Reference in New Issue
Block a user