73 lines
1.8 KiB
YAML
73 lines
1.8 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: invidious
|
|
namespace: default
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: invidious
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: invidious
|
|
spec:
|
|
initContainers:
|
|
- name: wait-for-companion
|
|
image: busybox
|
|
command:
|
|
- sh
|
|
- -c
|
|
- |
|
|
until nc -z -v -w30 invidious-companion-service 8282; do
|
|
echo "Waiting for companion to be ready..."
|
|
sleep 2
|
|
done
|
|
- name: wait-for-db
|
|
image: busybox
|
|
command:
|
|
- sh
|
|
- -c
|
|
- |
|
|
until nc -z -v -w30 invidious-db-service 5432; do
|
|
echo "Waiting for database to be ready..."
|
|
sleep 2
|
|
done
|
|
containers:
|
|
- name: invidious
|
|
image: quay.io/invidious/invidious@sha256:07b54eb82bd7b4d3cf9fe2f1a2cc7dfd18f6e14d23db185c2e34ffb8c21da093
|
|
env:
|
|
- name: INVIDIOUS_CONFIG
|
|
value: |
|
|
db:
|
|
dbname: invidious
|
|
user: kemal
|
|
password: akshun@9501
|
|
host: invidious-db-service
|
|
port: 5432
|
|
check_tables: true
|
|
invidious_companion:
|
|
- private_url: "http://invidious-companion-service:8282"
|
|
invidious_companion_key: "mtRhvm9wMCJhdnGP"
|
|
hmac_key: "qp/GnTJs5KCB8Ma8"
|
|
- name: INVIDIOUS_PORT
|
|
value: "3000"
|
|
ports:
|
|
- containerPort: 3000
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /api/v1/trending
|
|
port: 3000
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
timeoutSeconds: 5
|
|
failureThreshold: 2
|
|
volumeMounts:
|
|
- name: logging
|
|
mountPath: /var/log/invidious
|
|
volumes:
|
|
- name: logging
|
|
emptyDir: {}
|