From 7f353e1571ccf8625126e9288528cbaf8b879b6c Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Mon, 6 Nov 2023 08:06:41 -0600 Subject: [PATCH] PeerTube Helm release. --- .../fediverse/peertube/app/helmrelease.yaml | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 kubernetes/apps/fediverse/peertube/app/helmrelease.yaml diff --git a/kubernetes/apps/fediverse/peertube/app/helmrelease.yaml b/kubernetes/apps/fediverse/peertube/app/helmrelease.yaml new file mode 100644 index 0000000..3c2a7e4 --- /dev/null +++ b/kubernetes/apps/fediverse/peertube/app/helmrelease.yaml @@ -0,0 +1,89 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: peertube-server + namespace: fediverse +spec: + interval: 30m + chart: + spec: + chart: app-template + version: 2.0.3 + interval: 30m + sourceRef: + kind: HelmRepository + name: bjw-s + namespace: flux-system + + values: + controllers: + main: + annotations: + reloader.stakater.com/auto: "true" + containers: + main: + image: + repository: ghcr.io/jahanson/peertube-server + tag: v5.2.1 + pullPolicy: Always + env: + PEERTUBE_DB_HOSTNAME: + valueFrom: + secretKeyRef: + name: peertube-pguser-peertube + key: host + PEERTUBE_DB_USERNAME: + valueFrom: + secretKeyRef: + name: peertube-pguser-peertube + key: user + PEERTUBE_DB_PASSWORD: + valueFrom: + secretKeyRef: + name: peertube-pguser-peertube + key: password + envFrom: + - secretRef: + name: peertube-secret + # probes: + # readinessProbe: + # httpGet: + # path: /api/v1/instance + # port: 9000 + # initialDelaySeconds: 15 + # livenessProbe: + # httpGet: + # path: /api/v1/instance + # port: 9000 + # failureThreshold: 3 + # periodSeconds: 30 + # initialDelaySeconds: 15 + service: + main: + ports: + http: + port: &port-api 9000 + + persistence: + config: + enabled: true + type: configMap + name: peertube-configmap + globalMounts: + - path: /app/config + # media: + # existingClaim: nas-storage + # advancedMounts: + # main: + # main: + # - path: /app/storage + + resources: + requests: + cpu: 4000m + memory: 500Mi + limits: + cpu: 4000m + memory: 500Mi