mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-01-08 21:20:29 -05:00
87 lines
2.9 KiB
Markdown
87 lines
2.9 KiB
Markdown
# helm chart
|
|
|
|
# Recomendations
|
|
This helm chart includes subcharts for Meilisearch, Postgres, and RabbitMQ. Those resources should be managed outside of this Helm release.
|
|
|
|
## Postgres
|
|
Kyoo consists of multiple microservices. Best practice is for each microservice to use its own database. Kyoo workloads support best practices or sharing a single postgres database. Please see the `POSTGRES_SCHEMA` setting for additional information.
|
|
|
|
Strongly recomended to use a Kubernetes operator for managing Postgres.
|
|
|
|
## Storage
|
|
Kyoo currently uses storage volumes for media, backend-storage, and transcoder-storage. Media content tends to consume a large amount of space and Kubernetes storage interfaces tend to replicate across nodes. Consider hosting the data outside of Kubernetes or assigning one node to handle storage.
|
|
|
|
Storage for backend and transcoder will eventually be moved into a datastore application.
|
|
|
|
# Quickstart
|
|
Below provides an example for deploying Kyoo and its dependencies. This is a minimalist setup that is not intended for longterm use. This approach uses a single Postgres instance and initializes mutliple databases.
|
|
|
|
```sh
|
|
helm upgrade kyoo . --install --values myvalues.yaml
|
|
```
|
|
`myvaules.yaml` content
|
|
```yaml
|
|
kyoo:
|
|
address: https://kyoo.mydomain.com
|
|
meilisearch:
|
|
enabled: true
|
|
postgresql:
|
|
enabled: true
|
|
rabbitmq:
|
|
enabled: true
|
|
extraObjects:
|
|
- apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: bigsecret
|
|
type: Opaque
|
|
stringData:
|
|
#KYOO
|
|
# The following value should be set to a random sequence of characters.
|
|
# You MUST change it when installing kyoo (for security)
|
|
# You can input multiple api keys separated by a ,
|
|
kyoo_apikeys: yHXWGsjfjE6sy6UxavqmTUYxgCFYek
|
|
# Keep those empty to use kyoo's default api key. You can also specify a custom API key if you want.
|
|
# go to https://www.themoviedb.org/settings/api and copy the api key (not the read access token, the api key)
|
|
tmdb_apikey: ""
|
|
tvdb_apikey: ""
|
|
tvdb_pin: ""
|
|
#RESOURCES
|
|
# meilisearch does not allow mapping their key in yet.
|
|
MEILI_MASTER_KEY: barkLike8SuperDucks
|
|
postgres_user: kyoo_all
|
|
postgres_password: watchSomething4me
|
|
rabbitmq_user: kyoo_all
|
|
rabbitmq_password: youAreAmazing2
|
|
rabbitmq_cookie: mmmGoodCookie
|
|
- kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: back-storage
|
|
spec:
|
|
accessModes:
|
|
- "ReadWriteOnce"
|
|
resources:
|
|
requests:
|
|
storage: "3Gi"
|
|
- kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: media
|
|
spec:
|
|
accessModes:
|
|
- "ReadOnlyMany"
|
|
resources:
|
|
requests:
|
|
storage: "3Gi"
|
|
- kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: transcoder-storage
|
|
spec:
|
|
accessModes:
|
|
- "ReadWriteOnce"
|
|
resources:
|
|
requests:
|
|
storage: "3Gi"
|
|
``` |