summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorÉmilien (perso) <4016501+unixfox@users.noreply.github.com>2024-05-27 00:40:43 +0200
committerGitHub <noreply@github.com>2024-05-27 00:40:43 +0200
commit1ae14cc22468ce6e0eb794752b113604b1d5582d (patch)
tree419c37aa2e34d90c2dd3b5a8e5c3f22b4142ad12 /kubernetes
parenteda7444ca46dbc3941205316baba8030fe0b2989 (diff)
downloadinvidious-1ae14cc22468ce6e0eb794752b113604b1d5582d.tar.gz
invidious-1ae14cc22468ce6e0eb794752b113604b1d5582d.tar.bz2
invidious-1ae14cc22468ce6e0eb794752b113604b1d5582d.zip
move helm chart to a dedicated github repository (#4711)
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/.gitignore1
-rw-r--r--kubernetes/Chart.lock6
-rw-r--r--kubernetes/Chart.yaml22
-rw-r--r--kubernetes/README.md42
-rw-r--r--kubernetes/templates/_helpers.tpl16
-rw-r--r--kubernetes/templates/configmap.yaml11
-rw-r--r--kubernetes/templates/deployment.yaml61
-rw-r--r--kubernetes/templates/hpa.yaml18
-rw-r--r--kubernetes/templates/service.yaml20
-rw-r--r--kubernetes/values.yaml61
10 files changed, 1 insertions, 257 deletions
diff --git a/kubernetes/.gitignore b/kubernetes/.gitignore
deleted file mode 100644
index 0ad51707..00000000
--- a/kubernetes/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/charts/*.tgz
diff --git a/kubernetes/Chart.lock b/kubernetes/Chart.lock
deleted file mode 100644
index ef12b0b6..00000000
--- a/kubernetes/Chart.lock
+++ /dev/null
@@ -1,6 +0,0 @@
-dependencies:
-- name: postgresql
- repository: https://charts.bitnami.com/bitnami/
- version: 12.11.1
-digest: sha256:3c10008175c4f5c1cec38782f5a7316154b89074c77ebbd9bcc4be4f5ff21122
-generated: "2023-09-14T22:40:43.171275362Z"
diff --git a/kubernetes/Chart.yaml b/kubernetes/Chart.yaml
deleted file mode 100644
index d22f6254..00000000
--- a/kubernetes/Chart.yaml
+++ /dev/null
@@ -1,22 +0,0 @@
-apiVersion: v2
-name: invidious
-description: Invidious is an alternative front-end to YouTube
-version: 1.1.1
-appVersion: 0.20.1
-keywords:
-- youtube
-- proxy
-- video
-- privacy
-home: https://invidio.us/
-icon: https://raw.githubusercontent.com/iv-org/invidious/05988c1c49851b7d0094fca16aeaf6382a7f64ab/assets/favicon-32x32.png
-sources:
-- https://github.com/iv-org/invidious
-maintainers:
-- name: Leon Klingele
- email: mail@leonklingele.de
-dependencies:
-- name: postgresql
- version: ~12.11.0
- repository: "https://charts.bitnami.com/bitnami/"
-engine: gotpl
diff --git a/kubernetes/README.md b/kubernetes/README.md
index 35478f99..e71f6a86 100644
--- a/kubernetes/README.md
+++ b/kubernetes/README.md
@@ -1,41 +1 @@
-# 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
-
-# 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
-```
+The Helm chart has moved to a dedicated GitHub repository: https://github.com/iv-org/invidious-helm-chart/tree/master/invidious \ No newline at end of file
diff --git a/kubernetes/templates/_helpers.tpl b/kubernetes/templates/_helpers.tpl
deleted file mode 100644
index 52158b78..00000000
--- a/kubernetes/templates/_helpers.tpl
+++ /dev/null
@@ -1,16 +0,0 @@
-{{/* vim: set filetype=mustache: */}}
-{{/*
-Expand the name of the chart.
-*/}}
-{{- define "invidious.name" -}}
-{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
-{{/*
-Create a default fully qualified app name.
-We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
-*/}}
-{{- define "invidious.fullname" -}}
-{{- $name := default .Chart.Name .Values.nameOverride -}}
-{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
diff --git a/kubernetes/templates/configmap.yaml b/kubernetes/templates/configmap.yaml
deleted file mode 100644
index 58542a31..00000000
--- a/kubernetes/templates/configmap.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: {{ template "invidious.fullname" . }}
- labels:
- app: {{ template "invidious.name" . }}
- chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
- release: {{ .Release.Name }}
-data:
- INVIDIOUS_CONFIG: |
-{{ toYaml .Values.config | indent 4 }}
diff --git a/kubernetes/templates/deployment.yaml b/kubernetes/templates/deployment.yaml
deleted file mode 100644
index bb0b832f..00000000
--- a/kubernetes/templates/deployment.yaml
+++ /dev/null
@@ -1,61 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: {{ template "invidious.fullname" . }}
- labels:
- app: {{ template "invidious.name" . }}
- chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
- release: {{ .Release.Name }}
-spec:
- replicas: {{ .Values.replicaCount }}
- selector:
- matchLabels:
- app: {{ template "invidious.name" . }}
- release: {{ .Release.Name }}
- template:
- metadata:
- labels:
- app: {{ template "invidious.name" . }}
- chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
- release: {{ .Release.Name }}
- spec:
- securityContext:
- runAsUser: {{ .Values.securityContext.runAsUser }}
- runAsGroup: {{ .Values.securityContext.runAsGroup }}
- fsGroup: {{ .Values.securityContext.fsGroup }}
- initContainers:
- - name: wait-for-postgresql
- image: postgres
- args:
- - /bin/sh
- - -c
- - until pg_isready -h {{ .Values.config.db.host }} -p {{ .Values.config.db.port }} -U {{ .Values.config.db.user }}; do echo waiting for database; sleep 2; done;
- containers:
- - name: {{ .Chart.Name }}
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
- imagePullPolicy: {{ .Values.image.pullPolicy }}
- ports:
- - containerPort: 3000
- env:
- - name: INVIDIOUS_CONFIG
- valueFrom:
- configMapKeyRef:
- key: INVIDIOUS_CONFIG
- name: {{ template "invidious.fullname" . }}
- securityContext:
- allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }}
- capabilities:
- drop:
- - ALL
- resources:
-{{ toYaml .Values.resources | indent 10 }}
- readinessProbe:
- httpGet:
- port: 3000
- path: /
- livenessProbe:
- httpGet:
- port: 3000
- path: /
- initialDelaySeconds: 15
- restartPolicy: Always
diff --git a/kubernetes/templates/hpa.yaml b/kubernetes/templates/hpa.yaml
deleted file mode 100644
index c6fbefe2..00000000
--- a/kubernetes/templates/hpa.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-{{- if .Values.autoscaling.enabled }}
-apiVersion: autoscaling/v1
-kind: HorizontalPodAutoscaler
-metadata:
- name: {{ template "invidious.fullname" . }}
- labels:
- app: {{ template "invidious.name" . }}
- chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
- release: {{ .Release.Name }}
-spec:
- scaleTargetRef:
- apiVersion: apps/v1
- kind: Deployment
- name: {{ template "invidious.fullname" . }}
- minReplicas: {{ .Values.autoscaling.minReplicas }}
- maxReplicas: {{ .Values.autoscaling.maxReplicas }}
- targetCPUUtilizationPercentage: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
-{{- end }}
diff --git a/kubernetes/templates/service.yaml b/kubernetes/templates/service.yaml
deleted file mode 100644
index 01454d4e..00000000
--- a/kubernetes/templates/service.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
- name: {{ template "invidious.fullname" . }}
- labels:
- app: {{ template "invidious.name" . }}
- chart: {{ .Chart.Name }}
- release: {{ .Release.Name }}
-spec:
- type: {{ .Values.service.type }}
- ports:
- - name: http
- port: {{ .Values.service.port }}
- targetPort: 3000
- selector:
- app: {{ template "invidious.name" . }}
- release: {{ .Release.Name }}
-{{- if .Values.service.loadBalancerIP }}
- loadBalancerIP: {{ .Values.service.loadBalancerIP }}
-{{- end }}
diff --git a/kubernetes/values.yaml b/kubernetes/values.yaml
deleted file mode 100644
index 5000c2b6..00000000
--- a/kubernetes/values.yaml
+++ /dev/null
@@ -1,61 +0,0 @@
-name: invidious
-
-image:
- repository: quay.io/invidious/invidious
- tag: latest
- pullPolicy: Always
-
-replicaCount: 1
-
-autoscaling:
- enabled: false
- minReplicas: 1
- maxReplicas: 16
- targetCPUUtilizationPercentage: 50
-
-service:
- type: ClusterIP
- port: 3000
- #loadBalancerIP:
-
-resources: {}
- #requests:
- # cpu: 100m
- # memory: 64Mi
- #limits:
- # cpu: 800m
- # memory: 512Mi
-
-securityContext:
- allowPrivilegeEscalation: false
- runAsUser: 1000
- runAsGroup: 1000
- fsGroup: 1000
-
-# See https://github.com/bitnami/charts/tree/master/bitnami/postgresql
-postgresql:
- image:
- tag: 13
- auth:
- username: kemal
- password: kemal
- database: invidious
- primary:
- initdb:
- username: kemal
- password: kemal
- scriptsConfigMap: invidious-postgresql-init
-
-# Adapted from ../config/config.yml
-config:
- channel_threads: 1
- feed_threads: 1
- db:
- user: kemal
- password: kemal
- host: invidious-postgresql
- port: 5432
- dbname: invidious
- full_refresh: false
- https_only: false
- domain: