summaryrefslogtreecommitdiffstats
path: root/kubernetes/README.md
diff options
context:
space:
mode:
authorLeon Klingele <git@leonklingele.de>2020-02-03 23:19:18 +0100
committerLeon Klingele <git@leonklingele.de>2020-02-07 13:46:12 +0100
commit3cde5e28a8d946c1110697946b180027204b5d2c (patch)
tree37a3e69fde854e13d54c8de6ed5e3ce3d637e290 /kubernetes/README.md
parent9841f74adc94a4845aea6aace8d2408c3255dfa7 (diff)
downloadinvidious-3cde5e28a8d946c1110697946b180027204b5d2c.tar.gz
invidious-3cde5e28a8d946c1110697946b180027204b5d2c.tar.bz2
invidious-3cde5e28a8d946c1110697946b180027204b5d2c.zip
Add support to run on Kubernetes, add Helm chart
See relevant README.md for more details.
Diffstat (limited to 'kubernetes/README.md')
-rw-r--r--kubernetes/README.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/kubernetes/README.md b/kubernetes/README.md
new file mode 100644
index 00000000..163e9cd7
--- /dev/null
+++ b/kubernetes/README.md
@@ -0,0 +1,42 @@
+# Invidious Helm chart
+
+Easily deploy Invidious to Kubernetes.
+
+## Installing Helm chart
+
+```sh
+# Build Helm dependencies
+$ helm dep build
+
+# Add PostgreSQL init scripts
+$ kubectl create configmap invidious-postgresql-init \
+ --from-file=../config/sql/channels.sql \
+ --from-file=../config/sql/videos.sql \
+ --from-file=../config/sql/channel_videos.sql \
+ --from-file=../config/sql/users.sql \
+ --from-file=../config/sql/session_ids.sql \
+ --from-file=../config/sql/nonces.sql \
+ --from-file=../config/sql/annotations.sql \
+ --from-file=../config/sql/playlists.sql \
+ --from-file=../config/sql/playlist_videos.sql \
+ --from-file=../config/sql/privacy.sql
+
+# Install Helm app to your Kubernetes cluster
+$ helm install invidious ./
+```
+
+## Upgrading
+
+```sh
+# Upgrading is easy, too!
+$ helm upgrade invidious ./
+```
+
+## Uninstall
+
+```sh
+# Get rid of everything (except database)
+$ helm delete invidious
+
+# To also delete the database, remove all invidious-postgresql PVCs
+```