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-08-22 13:08:34 +00:00
|
|
|
tag: 3.0.1
|
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
|
|
|
|
value: 555
|
|
|
|
- name: PGID
|
|
|
|
value: 555
|
2024-07-23 22:34:42 +00:00
|
|
|
- name: TZ
|
|
|
|
value: "America/New_York" # Set to your timezone
|
|
|
|
- name: DB_HOST
|
|
|
|
value: "postgresql.database"
|
|
|
|
- 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:38:54 +00:00
|
|
|
value: https://twvods.seanomik.net
|
2024-07-23 22:34:42 +00:00
|
|
|
- name: OAUTH_PROVIDER_URL
|
2024-09-15 03:38:54 +00:00
|
|
|
value: "https://auth.seanomik.net/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:38:54 +00:00
|
|
|
value: "https://twvods.seanomik.net/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-08-11 01:02:28 +00:00
|
|
|
tag: 3.0.0
|
2024-07-23 22:34:42 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
- name: API_URL
|
|
|
|
# /api will be added to this
|
2024-09-15 03:38:54 +00:00
|
|
|
value: "https://twvods.seanomik.net" # 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:38:54 +00:00
|
|
|
value: "https://twvods.seanomik.net" # 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-08-22 13:03:26 +00:00
|
|
|
tag: 1.27.1-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:38:54 +00:00
|
|
|
- host: twvods.seanomik.net
|
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-15 03:38:54 +00:00
|
|
|
size: 15Gi
|
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
|
|
|
|
|