Helm chart for deploying Peertube on kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.0 KiB

4 years ago
  1. # [Peertube](https://github.com/Chocobozzz/PeerTube) on kubernetes
  2. Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent.
  3. ---
  4. ## Status : WIP but workable
  5. - [x] Run Peertube and Redis
  6. - [x] Use pvc to persist data
  7. - [ ] Improve readme for deployment
  8. ## Before deploying
  9. Currently if you want use persistent volume you need to create persistent volume and persistent volume claim. You may use sample claims from `sample`:
  10. - change the storageclass from `ChangeMeStorageClass` to your correct class
  11. - apply the claim: `kubectl apply -f sample/claim.pvc-pt.yml`
  12. ### Postgres
  13. You need a postgresql server.
  14. 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
  15. ### You also need a redis
  16. 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.
  17. 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)
  18. Once installed, use following values to pass needed info to your peertube instance.
  19. ```
  20. redisHostname
  21. redisAuth
  22. ```
  23. ## Installing the chart
  24. `$ helm install --name my-release .`
  25. Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
  26. ```
  27. $ helm install --name my-release \
  28. --set environment.hostname=new.domain.tld,\
  29. postgresql.postgresPassword=secretpassword \
  30. .
  31. ```
  32. Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
  33. `$ helm install --name my-release -f values.yaml .`
  34. See the sample/values.yml for example of values to use
  35. ## Source
  36. Originated from https://github.com/MikaXII/helm-charts
  37. Thanks!