mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-28 23:48:31 +00:00
PostgreSQL is now optional + migration on every start
This commit is contained in:
parent
701f03d5e8
commit
46718f2c0c
@ -1,6 +1,6 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
repository: https://charts.bitnami.com/bitnami/
|
repository: https://charts.bitnami.com/bitnami/
|
||||||
version: 12.1.9
|
version: 12.1.15
|
||||||
digest: sha256:71ff342a6c0a98bece3d7fe199983afb2113f8db65a3e3819de875af2c45add7
|
digest: sha256:b42ad043e9315686145047ac5625e1cb83cd6cfd7abf935f1db5cc3336dadb7f
|
||||||
generated: "2023-01-20T20:42:32.757707004Z"
|
generated: "2023-07-24T12:08:45.084074+02:00"
|
||||||
|
@ -19,4 +19,5 @@ dependencies:
|
|||||||
- name: postgresql
|
- name: postgresql
|
||||||
version: ~12.1.6
|
version: ~12.1.6
|
||||||
repository: "https://charts.bitnami.com/bitnami/"
|
repository: "https://charts.bitnami.com/bitnami/"
|
||||||
|
condition: postgresql.enabled
|
||||||
engine: gotpl
|
engine: gotpl
|
||||||
|
@ -30,6 +30,18 @@ spec:
|
|||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -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;
|
- 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;
|
||||||
|
- name: db-migration
|
||||||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
env:
|
||||||
|
- name: INVIDIOUS_CONFIG
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
key: INVIDIOUS_CONFIG
|
||||||
|
name: {{ template "invidious.fullname" . }}
|
||||||
|
command:
|
||||||
|
- /invidious/invidious
|
||||||
|
- --migrate
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
@ -47,8 +59,7 @@ spec:
|
|||||||
capabilities:
|
capabilities:
|
||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
resources:
|
resources: {{ toYaml .Values.resources | nindent 10 }}
|
||||||
{{ toYaml .Values.resources | indent 10 }}
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
port: 3000
|
port: 3000
|
||||||
|
@ -34,17 +34,13 @@ securityContext:
|
|||||||
|
|
||||||
# See https://github.com/bitnami/charts/tree/master/bitnami/postgresql
|
# See https://github.com/bitnami/charts/tree/master/bitnami/postgresql
|
||||||
postgresql:
|
postgresql:
|
||||||
|
enabled: true
|
||||||
image:
|
image:
|
||||||
tag: 13
|
tag: 13
|
||||||
auth:
|
auth:
|
||||||
username: kemal
|
username: kemal
|
||||||
password: kemal
|
password: kemal
|
||||||
database: invidious
|
database: invidious
|
||||||
primary:
|
|
||||||
initdb:
|
|
||||||
username: kemal
|
|
||||||
password: kemal
|
|
||||||
scriptsConfigMap: invidious-postgresql-init
|
|
||||||
|
|
||||||
# Adapted from ../config/config.yml
|
# Adapted from ../config/config.yml
|
||||||
config:
|
config:
|
||||||
|
Loading…
Reference in New Issue
Block a user