2024-07-23 22:34:42 +00:00
|
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: ganymede
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
interval: 5m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
|
|
|
version: 3.1.0
|
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjws-charts
|
|
|
|
namespace: flux-system
|
|
|
|
|
|
|
|
values:
|
|
|
|
controllers:
|
|
|
|
main:
|
|
|
|
# pod:
|
|
|
|
# securityContext:
|
|
|
|
# runAsNonRoot: true
|
|
|
|
# runAsUser: 10000
|
|
|
|
# runAsGroup: 10000
|
|
|
|
# fsGroup: 10000
|
|
|
|
# fsGroupChangePolicy: OnRootMismatch
|
|
|
|
|
|
|
|
containers:
|
|
|
|
api:
|
|
|
|
image:
|
|
|
|
repository: ghcr.io/zibbp/ganymede
|
2024-11-11 03:02:16 +00:00
|
|
|
tag: 3.1.0
|
2024-07-23 22:34:42 +00:00
|
|
|
|
2024-09-15 03:38:54 +00:00
|
|
|
securityContext:
|
|
|
|
#allowPrivilegeEscalation: false
|
|
|
|
#capabilities: { drop: ["ALL"] }
|
|
|
|
|
2024-07-23 22:34:42 +00:00
|
|
|
env:
|
2024-09-15 03:38:54 +00:00
|
|
|
- name: PUID
|
2024-10-11 15:41:33 +00:00
|
|
|
value: 10555
|
2024-09-15 03:38:54 +00:00
|
|
|
- name: PGID
|
2024-10-11 15:41:33 +00:00
|
|
|
value: 10555
|
2024-07-23 22:34:42 +00:00
|
|
|
- name: TZ
|
|
|
|
value: "America/New_York" # Set to your timezone
|
|
|
|
- name: DB_HOST
|
2024-10-17 00:31:50 +00:00
|
|
|
value: "postgres16-rw.database.svc"
|
2024-07-23 22:34:42 +00:00
|
|
|
- name: DB_PORT
|
|
|
|
value: "5432"
|
|
|
|
- name: DB_USER
|
|
|
|
value: "ganymede"
|
|
|
|
- name: DB_PASS
|
|
|
|
secretKeyRef:
|
|
|
|
name: ganymede-env
|
|
|
|
key: dbPassword
|
|
|
|
- name: DB_NAME
|
|
|
|
value: "ganymede"
|
|
|
|
- name: DB_SSL
|
|
|
|
value: "disable"
|
|
|
|
- name: JWT_SECRET
|
|
|
|
secretKeyRef:
|
|
|
|
name: ganymede-env
|
|
|
|
key: jwtSecret
|
|
|
|
- name: JWT_REFRESH_SECRET
|
|
|
|
secretKeyRef:
|
|
|
|
name: ganymede-env
|
|
|
|
key: jwtRefreshSecret
|
|
|
|
- name: TWITCH_CLIENT_ID
|
|
|
|
secretKeyRef:
|
|
|
|
name: ganymede-env
|
|
|
|
key: twitchClientId
|
|
|
|
- name: TWITCH_CLIENT_SECRET
|
|
|
|
secretKeyRef:
|
|
|
|
name: ganymede-env
|
|
|
|
key: twitchClientSecret
|
|
|
|
- name: FRONTEND_HOST
|
2024-09-15 03:43:09 +00:00
|
|
|
value: https://twvods.${SECRET_NEW_DOMAIN}
|
2024-07-23 22:34:42 +00:00
|
|
|
- name: OAUTH_PROVIDER_URL
|
2024-09-15 03:43:09 +00:00
|
|
|
value: "https://auth.${SECRET_NEW_DOMAIN}/application/o/ganymede/.well-known/openid-configuration"
|
2024-07-23 22:34:42 +00:00
|
|
|
- name: OAUTH_CLIENT_ID
|
|
|
|
secretKeyRef:
|
|
|
|
name: ganymede-env
|
|
|
|
key: oauthClientId
|
|
|
|
- name: OAUTH_CLIENT_SECRET
|
|
|
|
secretKeyRef:
|
|
|
|
name: ganymede-env
|
|
|
|
key: oauthClientSecret
|
|
|
|
- name: OAUTH_REDIRECT_URL
|
2024-09-15 03:43:09 +00:00
|
|
|
value: "https://twvods.${SECRET_NEW_DOMAIN}/api/v1/auth/oauth/callback"
|
2024-07-23 22:34:42 +00:00
|
|
|
- name: TEMPORAL_URL
|
|
|
|
value: "temporal:7233"
|
|
|
|
|
|
|
|
# WORKER
|
|
|
|
- name: MAX_CHAT_DOWNLOAD_EXECUTIONS
|
|
|
|
value: "5"
|
|
|
|
- name: MAX_CHAT_RENDER_EXECUTIONS
|
|
|
|
value: "3"
|
|
|
|
- name: MAX_VIDEO_DOWNLOAD_EXECUTIONS
|
|
|
|
value: "5"
|
|
|
|
- name: MAX_VIDEO_CONVERT_EXECUTIONS
|
|
|
|
value: "3"
|
|
|
|
|
|
|
|
frontend:
|
|
|
|
image:
|
|
|
|
repository: ghcr.io/zibbp/ganymede-frontend
|
2024-11-11 03:02:20 +00:00
|
|
|
tag: 3.1.0
|
2024-07-23 22:34:42 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
- name: API_URL
|
|
|
|
# /api will be added to this
|
2024-09-15 03:43:09 +00:00
|
|
|
value: "https://twvods.${SECRET_NEW_DOMAIN}" # Points to the API service
|
2024-07-23 22:34:42 +00:00
|
|
|
- name: CDN_URL
|
|
|
|
# /vods will be added to this
|
2024-09-15 03:43:09 +00:00
|
|
|
value: "https://twvods.${SECRET_NEW_DOMAIN}" # Points to the CDN service
|
2024-07-23 22:34:42 +00:00
|
|
|
- name: SHOW_SSO_LOGIN_BUTTON
|
|
|
|
value: "true" # show/hide SSO login button on login page
|
|
|
|
- name: FORCE_SSO_AUTH
|
|
|
|
value: "false" # force SSO auth for all users (bypasses login page and redirects to SSO)
|
|
|
|
- name: REQUIRE_LOGIN
|
|
|
|
value: "false" # require login to view videos
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image:
|
|
|
|
repository: nginxinc/nginx-unprivileged
|
2024-10-04 22:02:36 +00:00
|
|
|
tag: 1.27.2-alpine
|
2024-07-23 22:34:42 +00:00
|
|
|
|
2024-09-15 03:38:54 +00:00
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
capabilities: { drop: ["ALL"] }
|
|
|
|
|
2024-07-23 22:34:42 +00:00
|
|
|
service:
|
|
|
|
app:
|
|
|
|
controller: main
|
|
|
|
|
|
|
|
ports:
|
|
|
|
nginx:
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
frontend:
|
|
|
|
port: 3000
|
|
|
|
|
|
|
|
api:
|
|
|
|
port: 4000
|
|
|
|
|
|
|
|
ingress:
|
|
|
|
main:
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
|
|
|
|
|
hosts:
|
2024-09-15 03:43:09 +00:00
|
|
|
- host: twvods.${SECRET_NEW_DOMAIN}
|
2024-07-23 22:34:42 +00:00
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
service:
|
|
|
|
identifier: app
|
|
|
|
port: frontend
|
|
|
|
- path: /api
|
|
|
|
service:
|
|
|
|
identifier: app
|
|
|
|
port: api
|
2024-09-15 03:38:54 +00:00
|
|
|
- path: /data/videos
|
2024-07-23 22:34:42 +00:00
|
|
|
service:
|
|
|
|
identifier: app
|
|
|
|
port: nginx
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
vods:
|
|
|
|
type: persistentVolumeClaim
|
|
|
|
size: 50Gi
|
|
|
|
retain: true
|
|
|
|
storageClass: mainpool-hostpath
|
|
|
|
accessMode: ReadWriteOnce
|
|
|
|
globalMounts:
|
2024-09-15 03:38:54 +00:00
|
|
|
- path: /data/videos
|
2024-07-23 22:34:42 +00:00
|
|
|
|
|
|
|
ganymede-data:
|
|
|
|
type: persistentVolumeClaim
|
2024-09-20 02:09:53 +00:00
|
|
|
size: 5Gi
|
2024-07-23 22:34:42 +00:00
|
|
|
retain: true
|
|
|
|
storageClass: mainpool-hostpath
|
|
|
|
accessMode: ReadWriteOnce
|
|
|
|
advancedMounts:
|
|
|
|
main: # controller name
|
|
|
|
api: # container name
|
2024-09-15 03:38:54 +00:00
|
|
|
- path: /data/temp
|
2024-07-23 22:34:42 +00:00
|
|
|
|
|
|
|
ganymede-logs:
|
|
|
|
type: persistentVolumeClaim
|
|
|
|
size: 5Gi
|
|
|
|
retain: true
|
|
|
|
storageClass: mainpool-hostpath
|
|
|
|
accessMode: ReadWriteOnce
|
|
|
|
advancedMounts:
|
|
|
|
main: # controller name
|
|
|
|
api: # container name
|
2024-09-15 03:38:54 +00:00
|
|
|
- path: /data/logs
|
2024-07-23 22:34:42 +00:00
|
|
|
|
|
|
|
nginx-conf:
|
|
|
|
name: ganymede-nginx-conf
|
|
|
|
type: configMap
|
|
|
|
defaultMode: 0664
|
|
|
|
advancedMounts:
|
|
|
|
main: # controller name
|
|
|
|
nginx: # container name
|
2024-09-15 03:38:54 +00:00
|
|
|
- path: /etc/nginx/nginx.conf
|
|
|
|
subPath: nginx.conf
|
2024-07-23 22:34:42 +00:00
|
|
|
|
|
|
|
ganymede-conf:
|
|
|
|
name: ganymede-conf
|
|
|
|
type: configMap
|
|
|
|
defaultMode: 0777
|
|
|
|
advancedMounts:
|
|
|
|
main: # controller name
|
2024-09-15 03:38:54 +00:00
|
|
|
api: # container name
|
|
|
|
- path: /data/config/config.json
|
|
|
|
subPath: config.json
|
|
|
|
|