Added ingress and expandable storage support

This commit is contained in:
Isaac Abadi
2020-12-31 15:22:53 -05:00
parent c67d5c3734
commit 85e2958be3
6 changed files with 71 additions and 4 deletions

View File

@@ -2,9 +2,9 @@ apiVersion: v1
entries:
youtubedl-material:
- 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
digest: 71afe17fe75c49236b17b583d408260132a05f97a84bbb955ae3bcae6b41e9a9
digest: 2cbf64b27dd86d945ce3a0ae58b904c3b6a1858552f9fdbf1e213ea73afbcf18
home: https://github.com/Tzahi12345/YoutubeDL-Material/
icon: https://i.imgur.com/IKOlr0N.png
keywords:
@@ -19,4 +19,4 @@ entries:
urls:
- youtubedl-material-0.0.1.tgz
version: 0.0.1
generated: "2020-12-31T15:07:45.2023678-05:00"
generated: "2020-12-31T15:22:31.8445778-05:00"

View 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 }}

View 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 }}

View File

@@ -34,7 +34,7 @@ spec:
imagePullPolicy: ""
name: ytdl-material
ports:
- containerPort: 17442
- containerPort: http
resources: {}
volumeMounts:
- mountPath: /app/appdata

View File

@@ -0,0 +1,11 @@
service:
type: ClusterIP
port: 80
ingress:
enabled: false
annotations: {}
hosts:
- host: ytdl-material.local
paths: []
tls: []