feat(Funkwhale): Fix port + update container (#4744)
* feat(Funkwhale): Fix port + update container * Update charts/incubator/funkwhale/values.yaml Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * secret key * whops * port Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Stavros kois <s.kois@outlook.com>
This commit is contained in:
parent
40d4db4f55
commit
1af6bffabb
|
@ -26,6 +26,6 @@ name: funkwhale
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/truecharts/charts/tree/master/charts/incubator/funkwhale
|
- https://github.com/truecharts/charts/tree/master/charts/incubator/funkwhale
|
||||||
- https://funkwhale.audio/
|
- https://funkwhale.audio/
|
||||||
- https://hub.docker.com/r/thetarkus/funkwhale/
|
- https://hub.docker.com/r/funkwhale/funkwhale
|
||||||
type: application
|
type: application
|
||||||
version: 2.0.1
|
version: 2.1.0
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
{{/* Define the secret */}}
|
||||||
|
{{- define "funkwhale.secret" -}}
|
||||||
|
|
||||||
|
{{- $secretName := printf "%s-secret" (include "tc.common.names.fullname" .) -}}
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
type: Opaque
|
||||||
|
metadata:
|
||||||
|
name: {{ $secretName }}
|
||||||
|
labels:
|
||||||
|
{{- include "tc.common.labels" . | nindent 4 }}
|
||||||
|
data:
|
||||||
|
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
|
||||||
|
DJANGO_SECRET_KEY: {{ (index .data "DJANGO_SECRET_KEY") }}
|
||||||
|
{{- else }}
|
||||||
|
DJANGO_SECRET_KEY: {{ randAlphaNum 32 | b64enc }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
|
@ -1,2 +1,8 @@
|
||||||
|
{{/* Make sure all variables are set properly */}}
|
||||||
|
{{- include "tc.common.loader.init" . }}
|
||||||
|
|
||||||
|
{{/* Render secret */}}
|
||||||
|
{{- include "funkwhale.secret" . }}
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
{{/* Render the templates */}}
|
||||||
{{ include "tc.common.loader.all" . }}
|
{{ include "tc.common.loader.apply" . }}
|
||||||
|
|
|
@ -1,10 +1,32 @@
|
||||||
env:
|
|
||||||
FUNKWHALE_HOSTNAME: yourdomain.funkwhale
|
|
||||||
NESTED_PROXY: "0"
|
|
||||||
image:
|
image:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
repository: tccr.io/truecharts/funkwhale
|
repository: tccr.io/truecharts/funkwhale
|
||||||
tag: latest@sha256:ec538fd47441c881b3f06bfffcd164b63779a805ec6d05439dbeb5e8eff52729
|
tag: 1.2.8@sha256:e12c15ebb65102637b507ca0a610bc4a372495fd58bd8a02f2b4d024eff2badd
|
||||||
|
|
||||||
|
podSecurityContext:
|
||||||
|
runAsGroup: 0
|
||||||
|
runAsUser: 0
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
runAsNonRoot: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
DJANGO_SECRET_KEY:
|
||||||
|
secretKeyRef:
|
||||||
|
name: '{{ printf "%s-secret" (include "tc.common.names.fullname" .) }}'
|
||||||
|
key: DJANGO_SECRET_KEY
|
||||||
|
FUNKWHALE_HOSTNAME: yourdomain.funkwhale
|
||||||
|
NESTED_PROXY: "0"
|
||||||
|
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
ports:
|
||||||
|
main:
|
||||||
|
port: 10236
|
||||||
|
protocol: HTTP
|
||||||
|
targetPort: 5000
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
data:
|
data:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -13,19 +35,6 @@ persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
mountPath: /music
|
mountPath: /music
|
||||||
readOnly: true
|
readOnly: true
|
||||||
podSecurityContext:
|
|
||||||
runAsGroup: 0
|
|
||||||
runAsUser: 0
|
|
||||||
securityContext:
|
|
||||||
readOnlyRootFilesystem: false
|
|
||||||
runAsNonRoot: false
|
|
||||||
service:
|
|
||||||
main:
|
|
||||||
ports:
|
|
||||||
main:
|
|
||||||
port: 3030
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 80
|
|
||||||
|
|
||||||
portal:
|
portal:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Loading…
Reference in New Issue