transmission use helm chart
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: transmission
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ .Chart.Name }}
|
||||
{{- include "transmission.labels" . | nindent 4 }}
|
||||
spec:
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: transmission
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: transmission
|
||||
spec:
|
||||
volumes:
|
||||
- name: config
|
||||
hostPath:
|
||||
path: {{ .Values.directory.config }}
|
||||
- name: downloads
|
||||
hostPath:
|
||||
path: {{ .Values.directory.downloads }}
|
||||
- name: watch
|
||||
hostPath:
|
||||
path: {{ .Values.directory.watch }}
|
||||
containers:
|
||||
- name: transmission
|
||||
image: {{ printf "%s:%s" .Values.images.transmission.repository .Values.images.transmission.tag | quote }}
|
||||
pullPolicy: {{ .Values.images.transmission.pullPolicy }}
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: transmission
|
||||
- secretRef:
|
||||
name: transmission
|
||||
resources:
|
||||
{{- toYaml .Values.resources.transmission | nindent 10 }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.ports.transmission.web }}
|
||||
name: web
|
||||
- containerPort: {{ .Values.ports.transmission.torrent }}
|
||||
name: torrent-tcp
|
||||
- containerPort: {{ .Values.ports.transmission.torrent }}
|
||||
protocol: UDP
|
||||
name: torrent-udp
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: config
|
||||
- mountPath: /downloads
|
||||
name: downloads
|
||||
- mountPath: /watch
|
||||
name: watch
|
||||
Reference in New Issue
Block a user