Browse Source

Add some more samples for easier installation

tags/v1.0.1
LecygneNoir 1 year ago
parent
commit
9480d6134c
5 changed files with 38 additions and 3 deletions
  1. +5
    -3
      README.md
  2. +11
    -0
      sample/claim.pvc-pt.yml
  3. +11
    -0
      sample/claim.pvc-ptconfig.yml
  4. +11
    -0
      sample/claim.pvc-redis.yml
  5. +0
    -0
      sample/values.yml

+ 5
- 3
README.md View File

@ -10,9 +10,11 @@ Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly
- [x] Use pvc to persist data
- [ ] Improve readme for deployment
## Before deploy
## Before deploying
Currently if you want use persistent volume you need to create persistent volume and persistent volume claim
Currently if you want use persistent volume you need to create persistent volume and persistent volume claim. You may use sample claims from `sample`:
- 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).
@ -34,7 +36,7 @@ Alternatively, a YAML file that specifies the values for the parameters can be p
`$ helm install --name my-release -f values.yaml .`
See the values.yml.sample for example of values to use
See the sample/values.yml for example of values to use
## Source

+ 11
- 0
sample/claim.pvc-pt.yml View File

@ -0,0 +1,11 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: pvc-pt-prod
spec:
accessModes:
- ReadWriteMany
storageClassName: ChangeMeStorageClass
resources:
requests:
storage: 2Ti

+ 11
- 0
sample/claim.pvc-ptconfig.yml View File

@ -0,0 +1,11 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: pvc-ptconfig-prod
spec:
accessModes:
- ReadWriteMany
storageClassName: ChangeMeStorageClass
resources:
requests:
storage: 200Mi

+ 11
- 0
sample/claim.pvc-redis.yml View File

@ -0,0 +1,11 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: pvc-redis-prod
spec:
accessModes:
- ReadWriteMany
storageClassName: ChangeMeStorageClass
resources:
requests:
storage: 20Gi

values.yml.sample → sample/values.yml View File


Loading…
Cancel
Save