mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
create pvcs needed for back/transcoder
This commit is contained in:
parent
296305f8f6
commit
64f67e7ef7
@ -54,16 +54,6 @@ extraObjects:
|
|||||||
rabbitmq_user: kyoo_all
|
rabbitmq_user: kyoo_all
|
||||||
rabbitmq_password: youAreAmazing2
|
rabbitmq_password: youAreAmazing2
|
||||||
rabbitmq_cookie: mmmGoodCookie
|
rabbitmq_cookie: mmmGoodCookie
|
||||||
- kind: PersistentVolumeClaim
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: back-storage
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- "ReadWriteOnce"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: "3Gi"
|
|
||||||
- kind: PersistentVolumeClaim
|
- kind: PersistentVolumeClaim
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
@ -74,14 +64,4 @@ extraObjects:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: "3Gi"
|
storage: "3Gi"
|
||||||
- kind: PersistentVolumeClaim
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: transcoder-storage
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- "ReadWriteOnce"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: "3Gi"
|
|
||||||
```
|
```
|
@ -41,6 +41,14 @@ Create the name of the back service account to use
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create kyoo back-metadata name
|
||||||
|
*/}}
|
||||||
|
{{- define "kyoo.backmetadata.fullname" -}}
|
||||||
|
{{- printf "%s-%s%s" (include "kyoo.fullname" .) .Values.back.name "metadata" | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create kyoo front name
|
Create kyoo front name
|
||||||
*/}}
|
*/}}
|
||||||
@ -112,3 +120,10 @@ Create the name of the transcoder service account to use
|
|||||||
{{ default "default" .Values.transcoder.serviceAccount.name }}
|
{{ default "default" .Values.transcoder.serviceAccount.name }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create kyoo transcoder-metadata name
|
||||||
|
*/}}
|
||||||
|
{{- define "kyoo.transcodermetadata.fullname" -}}
|
||||||
|
{{- printf "%s-%s%s" (include "kyoo.fullname" .) .Values.transcoder.name "metadata" | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
@ -177,6 +177,10 @@ spec:
|
|||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
{{- if .Values.back.persistence.enabled }}
|
||||||
|
- name: backmetadata
|
||||||
|
mountPath: /metadata
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.back.kyoo_back.volumeMounts }}
|
{{- with .Values.back.kyoo_back.volumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -187,6 +191,17 @@ spec:
|
|||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
|
{{- if .Values.back.persistence.enabled }}
|
||||||
|
{{- if .Values.back.persistence.existingClaim }}
|
||||||
|
- name: backmetadata
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Values.back.persistence.existingClaim }}
|
||||||
|
{{- else }}
|
||||||
|
- name: backmetadata
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ include "kyoo.backmetadata.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.back.volumes }}
|
{{- with .Values.back.volumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
25
chart/templates/back/pvc.yaml
Normal file
25
chart/templates/back/pvc.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{{- if and .Values.back.persistence.enabled (not .Values.back.persistence.existingClaim) }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ include "kyoo.backmetadata.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "kyoo.labels" (dict "context" . "component" .Values.back.name "name" .Values.back.name) | nindent 4 }}
|
||||||
|
{{- with (mergeOverwrite (deepCopy .Values.global.persistentVolumeClaimAnnotations) .Values.back.persistence.annotations) }}
|
||||||
|
annotations:
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
{{- range .Values.back.persistence.accessModes }}
|
||||||
|
- {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.back.persistence.size }}
|
||||||
|
{{- if .Values.back.persistence.storageClass }}
|
||||||
|
storageClassName: {{ .Values.back.persistence.storageClass }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
@ -104,6 +104,10 @@ spec:
|
|||||||
{{- with .Values.media.volumeMounts }}
|
{{- with .Values.media.volumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.back.persistence.enabled }}
|
||||||
|
- name: transcodermetadata
|
||||||
|
mountPath: /metadata
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.transcoder.kyoo_transcoder.volumeMounts }}
|
{{- with .Values.transcoder.kyoo_transcoder.volumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -121,6 +125,17 @@ spec:
|
|||||||
{{- with .Values.media.volumes }}
|
{{- with .Values.media.volumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.transcoder.persistence.enabled }}
|
||||||
|
{{- if .Values.transcoder.persistence.existingClaim }}
|
||||||
|
- name: transcodermetadata
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Values.transcoder.persistence.existingClaim }}
|
||||||
|
{{- else }}
|
||||||
|
- name: transcodermetadata
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ include "kyoo.transcodermetadata.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.transcoder.volumes }}
|
{{- with .Values.transcoder.volumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
25
chart/templates/transcoder/pvc.yaml
Normal file
25
chart/templates/transcoder/pvc.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{{- if and .Values.transcoder.persistence.enabled (not .Values.transcoder.persistence.existingClaim) }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ include "kyoo.transcodermetadata.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "kyoo.labels" (dict "context" . "component" .Values.transcoder.name "name" .Values.transcoder.name) | nindent 4 }}
|
||||||
|
{{- with (mergeOverwrite (deepCopy .Values.global.persistentVolumeClaimAnnotations) .Values.transcoder.persistence.annotations) }}
|
||||||
|
annotations:
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
{{- range .Values.transcoder.persistence.accessModes }}
|
||||||
|
- {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.transcoder.persistence.size }}
|
||||||
|
{{- if .Values.transcoder.persistence.storageClass }}
|
||||||
|
storageClassName: {{ .Values.transcoder.persistence.storageClass }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
@ -9,6 +9,7 @@ global:
|
|||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
deploymentAnnotations: {}
|
deploymentAnnotations: {}
|
||||||
|
persistentVolumeClaimAnnotations: {}
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
podLabels: {}
|
podLabels: {}
|
||||||
extraEnv: []
|
extraEnv: []
|
||||||
@ -219,13 +220,8 @@ back:
|
|||||||
image:
|
image:
|
||||||
repository: ~
|
repository: ~
|
||||||
tag: ~
|
tag: ~
|
||||||
volumeMounts:
|
volumeMounts: []
|
||||||
- mountPath: /metadata
|
volumes: []
|
||||||
name: back-storage
|
|
||||||
volumes:
|
|
||||||
- name: back-storage
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: back-storage
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
podLabels: {}
|
podLabels: {}
|
||||||
deploymentAnnotations: {}
|
deploymentAnnotations: {}
|
||||||
@ -243,6 +239,16 @@ back:
|
|||||||
extraContainers: []
|
extraContainers: []
|
||||||
extraInitContainers: []
|
extraInitContainers: []
|
||||||
extraVolumes: []
|
extraVolumes: []
|
||||||
|
# backmetadata
|
||||||
|
# user profile pictures
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
size: 3Gi
|
||||||
|
annotations: {}
|
||||||
|
storageClass: ""
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
existingClaim: ""
|
||||||
|
|
||||||
# front deployment configuration
|
# front deployment configuration
|
||||||
front:
|
front:
|
||||||
@ -357,14 +363,9 @@ transcoder:
|
|||||||
repository: ~
|
repository: ~
|
||||||
tag: ~
|
tag: ~
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /metadata
|
|
||||||
name: transcoder-storage
|
|
||||||
- mountPath: /cache
|
- mountPath: /cache
|
||||||
name: cache
|
name: cache
|
||||||
volumes:
|
volumes:
|
||||||
- name: transcoder-storage
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: transcoder-storage
|
|
||||||
- name: cache
|
- name: cache
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
@ -384,6 +385,16 @@ transcoder:
|
|||||||
extraContainers: []
|
extraContainers: []
|
||||||
extraInitContainers: []
|
extraInitContainers: []
|
||||||
extraVolumes: []
|
extraVolumes: []
|
||||||
|
# transcodermetadata
|
||||||
|
# thumbnail images & subtiles
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
size: 3Gi
|
||||||
|
annotations: {}
|
||||||
|
storageClass: ""
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
existingClaim: ""
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user