Browse Source

Compatibility for Peertube v4.3.0 and removing of very old redis chart dependancy

master
LecygneNoir 1 year ago
parent
commit
b88f4ceba4
8 changed files with 32 additions and 30 deletions
  1. +9
    -0
      CHANGELOG.md
  2. +2
    -2
      Chart.yaml
  3. +16
    -3
      README.md
  4. BIN
      charts/redis-3.3.5.tgz
  5. +0
    -6
      requirements.lock
  6. +0
    -5
      requirements.yaml
  7. +4
    -2
      templates/deployment.yaml
  8. +1
    -12
      values.yaml

+ 9
- 0
CHANGELOG.md View File

@ -1,3 +1,12 @@
# v1.5.0
## Important
- Removed redis from this chart as it's osbolete. You need to install a redis server aside! See README for details.
## Features:
- Compatibility with peertube v4.3.0
# v1.4.0
## Feature

+ 2
- 2
Chart.yaml View File

@ -1,5 +1,5 @@
apiVersion: v1
appVersion: "v4.0.0-bullseye"
appVersion: "v4.3.0-bullseye"
description: A Helm chart for Kubernetes
name: peertube
version: 1.4.0
version: 1.5.0

+ 16
- 3
README.md View File

@ -4,7 +4,7 @@ Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly
---
## Status : WIP bu workable
## Status : WIP but workable
- [x] Run Peertube and Redis
- [x] Use pvc to persist data
@ -16,8 +16,21 @@ Currently if you want use persistent volume you need to create persistent volume
- change the storageclass from `ChangeMeStorageClass` to your correct class
- apply the claim: `kubectl apply -f sample/claim.pvc-pt.yml`
You also need a postgresql server.
If you know what you are doing and want to store postgres in Kubernetes, I suggest the excellent [stolon](https://github.com/helm/charts/tree/master/stable/stolon).
### Postgres
You need a postgresql server.
If you know what you are doing and want to store postgres in Kubernetes, I suggest [postgres-operator](https://access.crunchydata.com/documentation/postgres-operator/5.1.1/) from CrunchyData
### You also need a redis
From peertube helm v1.5.0, redis is no more provided inside the chart. Indeed peertube does not handle anymore redis 3.3, so I advice installing and managing redis outside the chart like postgres cluster.
I suggest using [bitnami redis](https://github.com/bitnami/charts/tree/master/bitnami/redis) with `architecture=standalone` to avoid uneeded slave (Peertube only need master)
Once installed, use following values to pass needed info to your peertube instance.
```
redisHostname
redisAuth
```
## Installing the chart

BIN
charts/redis-3.3.5.tgz View File


+ 0
- 6
requirements.lock View File

@ -1,6 +0,0 @@
dependencies:
- name: redis
repository: https://kubernetes-charts.storage.googleapis.com
version: 3.3.5
digest: sha256:bc60370cbce6d02249e972f74489dc20248f8bd3d61d7e031d6e186ff07c42ad
generated: 2018-06-08T16:58:13.072321307+02:00

+ 0
- 5
requirements.yaml View File

@ -1,5 +0,0 @@
# requirements.yaml
dependencies:
- name: redis
version: "3.3.5"
repository: "@stable"

+ 4
- 2
templates/deployment.yaml View File

@ -149,7 +149,7 @@ spec:
httpGet:
path: /
port: http
initialDelaySeconds: 300
initialDelaySeconds: 30
failureThreshold: 3
periodSeconds: 10
{{- end }}
@ -172,7 +172,9 @@ spec:
- name: PEERTUBE_DB_PASSWORD
value: {{ .Values.environment.dbPassword }}
- name: PEERTUBE_REDIS_HOSTNAME
value: {{ .Release.Name }}-{{ .Values.environment.redisHostname }}-master
value: {{ .Values.environment.redisHostname }}
- name: PEERTUBE_REDIS_AUTH
value: {{ .Values.environment.redisAuth }}
- name: PEERTUBE_SMTP_USERNAME
value: {{ .Values.environment.smtpUser | quote }}
- name: PEERTUBE_SMTP_PASSWORD

+ 1
- 12
values.yaml View File

@ -86,6 +86,7 @@ environment:
dbUser: peertube
dbPassword: postgres
redisHostname: redis
redisAuth: redispassword
smtpUser: peertube@peertube.domain.tld
smtpPassword: smtppassword
smtpHostname: smtp.peertube.domain.tld
@ -109,15 +110,3 @@ nginxproxy:
persistence:
enabled: false
existingClaim: pvc-nginx-proxy
redis:
usePassword: false
password: peertube
master:
persistence:
enabled: true
path: /data
# PVC are not handled by helm, you need to create redis volume before deploying helm
persistence:
enabled: true
existingClaim: pvc-redis-prod

Loading…
Cancel
Save