mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-10 01:11:28 +03:00
Added ingress and expandable storage support
This commit is contained in:
@@ -2,9 +2,9 @@ apiVersion: v1
|
|||||||
entries:
|
entries:
|
||||||
youtubedl-material:
|
youtubedl-material:
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
created: "2020-12-31T15:07:45.2073679-05:00"
|
created: "2020-12-31T15:22:31.8456098-05:00"
|
||||||
description: A Material Design frontend for youtube-dl
|
description: A Material Design frontend for youtube-dl
|
||||||
digest: 71afe17fe75c49236b17b583d408260132a05f97a84bbb955ae3bcae6b41e9a9
|
digest: 2cbf64b27dd86d945ce3a0ae58b904c3b6a1858552f9fdbf1e213ea73afbcf18
|
||||||
home: https://github.com/Tzahi12345/YoutubeDL-Material/
|
home: https://github.com/Tzahi12345/YoutubeDL-Material/
|
||||||
icon: https://i.imgur.com/IKOlr0N.png
|
icon: https://i.imgur.com/IKOlr0N.png
|
||||||
keywords:
|
keywords:
|
||||||
@@ -19,4 +19,4 @@ entries:
|
|||||||
urls:
|
urls:
|
||||||
- youtubedl-material-0.0.1.tgz
|
- youtubedl-material-0.0.1.tgz
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
generated: "2020-12-31T15:07:45.2023678-05:00"
|
generated: "2020-12-31T15:22:31.8445778-05:00"
|
||||||
|
|||||||
41
docker-compose/templates/ingress.yaml
Normal file
41
docker-compose/templates/ingress.yaml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{{- if .Values.ingress.enabled -}}
|
||||||
|
{{- $fullName := include "youtubedl-material.fullname" . -}}
|
||||||
|
{{- $svcPort := .Values.service.port -}}
|
||||||
|
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
{{- else -}}
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
{{- end }}
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: {{ $fullName }}
|
||||||
|
labels:
|
||||||
|
{{- include "youtubedl-material.labels" . | nindent 4 }}
|
||||||
|
{{- with .Values.ingress.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
{{- if .Values.ingress.tls }}
|
||||||
|
tls:
|
||||||
|
{{- range .Values.ingress.tls }}
|
||||||
|
- hosts:
|
||||||
|
{{- range .hosts }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
secretName: {{ .secretName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
rules:
|
||||||
|
{{- range .Values.ingress.hosts }}
|
||||||
|
- host: {{ .host | quote }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
{{- range .paths }}
|
||||||
|
- path: {{ .path }}
|
||||||
|
backend:
|
||||||
|
serviceName: {{ $fullName }}
|
||||||
|
servicePort: {{ $svcPort }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
15
docker-compose/templates/service.yaml
Normal file
15
docker-compose/templates/service.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ include "youtubedl-material.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "youtubedl-material.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
type: {{ .Values.service.type }}
|
||||||
|
ports:
|
||||||
|
- port: {{ .Values.service.port }}
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
selector:
|
||||||
|
{{- include "youtubedl-material.selectorLabels" . | nindent 4 }}
|
||||||
@@ -34,7 +34,7 @@ spec:
|
|||||||
imagePullPolicy: ""
|
imagePullPolicy: ""
|
||||||
name: ytdl-material
|
name: ytdl-material
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 17442
|
- containerPort: http
|
||||||
resources: {}
|
resources: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /app/appdata
|
- mountPath: /app/appdata
|
||||||
|
|||||||
11
docker-compose/values.yaml
Normal file
11
docker-compose/values.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 80
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
|
annotations: {}
|
||||||
|
hosts:
|
||||||
|
- host: ytdl-material.local
|
||||||
|
paths: []
|
||||||
|
tls: []
|
||||||
Binary file not shown.
Reference in New Issue
Block a user