-
Notifications
You must be signed in to change notification settings - Fork 0
/
invidious.yaml
117 lines (117 loc) · 2.58 KB
/
invidious.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# INVIDIOUS DATABASE DEPLOYMENT
apiVersion: apps/v1
kind: Deployment
metadata:
name: invidious-db-deployment
labels:
app: invidious-db
spec:
replicas: 1
selector:
matchLabels:
app: invidious-db
template:
metadata:
labels:
app: invidious-db
spec:
containers:
- name: invidious-db
image: postgres:13
ports:
- containerPort: 5432
env:
- name: POSTGRES_PASSWORD
value: kemal
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: postgres-data
- mountPath: /config/sql
name: config-sql
- mountPath: /docker-entrypoint-initdb.d/init-invidious-db.sh
name: entry-point
volumes:
- name: postgres-data
hostPath:
path: /home/docker/data/invidious/db
type: Directory
- name: config-sql
hostPath:
path: /home/docker/data/invidious/config/sql
type: Directory
- name: entry-point
hostPath:
path: /home/docker/data/invidious/docker/init-invidious-db.sh
type: File
---
# INVIDIOUS DEPLOYMENT
apiVersion: apps/v1
kind: Deployment
metadata:
name: invidious-deployment
labels:
app: invidious
spec:
replicas: 1
selector:
matchLabels:
app: invidious
template:
metadata:
labels:
app: invidious
spec:
containers:
- name: invidious
image: quay.io/invidious/invidious
ports:
- containerPort: 3000
env:
- name: INVIDIOUS_CONFIG
value: |
db:
dbname: postgres
user: postgres
password: kemal
host: invidious-db-service
port: 5432
default_user_preferences:
feed_menu: ["Trending", "Subscriptions", "Playlists"]
default_home: Trending
region: IT
locale: it-IT
check_tables: true
hmac_key: "abcabccabab"
popular_enabled: false
captcha_enabled: false
domain: tube.gian.im
https_only: true
external_port: 443
---
# INVIDIOUS SERVICE
apiVersion: v1
kind: Service
metadata:
name: invidious-service
spec:
type: NodePort
selector:
app: invidious
ports:
- protocol: TCP
port: 3000
targetPort: 3000
nodePort: 30005
---
# INVIDIOUS DATABASE SERVICE
apiVersion: v1
kind: Service
metadata:
name: invidious-db-service
spec:
selector:
app: invidious-db
ports:
- protocol: TCP
port: 5432
targetPort: 5432