From 78050af05f9ca698ca50161130020f8b83c30292 Mon Sep 17 00:00:00 2001 From: "victor.hery" Date: Fri, 3 Jan 2020 09:37:03 +0100 Subject: [PATCH] Add some more samples for easier installation --- README.md | 8 +++++--- sample/claim.pvc-pt.yml | 11 +++++++++++ sample/claim.pvc-ptconfig.yml | 11 +++++++++++ sample/claim.pvc-redis.yml | 11 +++++++++++ values.yml.sample => sample/values.yml | 0 5 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 sample/claim.pvc-pt.yml create mode 100644 sample/claim.pvc-ptconfig.yml create mode 100644 sample/claim.pvc-redis.yml rename values.yml.sample => sample/values.yml (100%) diff --git a/README.md b/README.md index 6957b94..52a4b61 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/sample/claim.pvc-pt.yml b/sample/claim.pvc-pt.yml new file mode 100644 index 0000000..7d20a72 --- /dev/null +++ b/sample/claim.pvc-pt.yml @@ -0,0 +1,11 @@ +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: pvc-pt-prod +spec: + accessModes: + - ReadWriteMany + storageClassName: ChangeMeStorageClass + resources: + requests: + storage: 2Ti diff --git a/sample/claim.pvc-ptconfig.yml b/sample/claim.pvc-ptconfig.yml new file mode 100644 index 0000000..caf14b7 --- /dev/null +++ b/sample/claim.pvc-ptconfig.yml @@ -0,0 +1,11 @@ +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: pvc-ptconfig-prod +spec: + accessModes: + - ReadWriteMany + storageClassName: ChangeMeStorageClass + resources: + requests: + storage: 200Mi diff --git a/sample/claim.pvc-redis.yml b/sample/claim.pvc-redis.yml new file mode 100644 index 0000000..e14d51b --- /dev/null +++ b/sample/claim.pvc-redis.yml @@ -0,0 +1,11 @@ +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: pvc-redis-prod +spec: + accessModes: + - ReadWriteMany + storageClassName: ChangeMeStorageClass + resources: + requests: + storage: 20Gi diff --git a/values.yml.sample b/sample/values.yml similarity index 100% rename from values.yml.sample rename to sample/values.yml