initial configuration of peertube container

This commit is contained in:
Joseph Hanson 2024-01-04 16:31:18 -06:00
parent 8be46bccde
commit 48611b23c1

View file

@ -10,7 +10,7 @@ spec:
chart: chart:
spec: spec:
chart: app-template chart: app-template
version: 2.0.3 version: 2.4.0
interval: 30m interval: 30m
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
@ -22,6 +22,19 @@ spec:
main: main:
annotations: annotations:
reloader.stakater.com/auto: "true" reloader.stakater.com/auto: "true"
initContainers:
init-config:
image:
repository: docker.io/chocobozzz/peertube
tag: v6.0.2-bookworm
command:
- "/bin/sh"
- "-c"
args:
- cp /app/support/docker/production/config/* /config;
cp /app/config/default.yaml /config;
chown -R peertube:peertube /data /config;
cp -r /app/client/dist/* /assets/;
containers: containers:
main: main:
image: image:
@ -44,6 +57,9 @@ spec:
failureThreshold: 3 failureThreshold: 3
periodSeconds: 30 periodSeconds: 30
initialDelaySeconds: 15 initialDelaySeconds: 15
nginx:
image:
repository: docker.io/library/nginx:1.25.3-alpine
service: service:
main: main:
ports: ports:
@ -51,18 +67,18 @@ spec:
port: &port-api 9000 port: &port-api 9000
persistence: persistence:
config: # config:
# enabled: true
# type: configMap
# name: peertube-configmap
# globalMounts:
# - path: /config
nginx-conf:
enabled: true enabled: true
type: configMap type: configMap
name: peertube-configmap name: peertube-nginx
globalMounts: globalMounts:
- path: /config - path: /etc/nginx/conf.d
media:
existingClaim: nas-storage
advancedMounts:
main:
main:
- path: /data
resources: resources:
requests: requests: