new for companion
This commit is contained in:
@@ -14,70 +14,49 @@ spec:
|
||||
labels:
|
||||
app: invidious
|
||||
spec:
|
||||
initContainers:
|
||||
- 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
|
||||
- name: wait-for-helper
|
||||
image: busybox
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
until nc -z -v -w30 inv-sig-helper 12999; do
|
||||
echo "Waiting for helper to be ready..."
|
||||
sleep 2
|
||||
done
|
||||
containers:
|
||||
- name: invidious-server
|
||||
image: quay.io/invidious/invidious:2025.04.04-0c07e9d
|
||||
- name: invidious
|
||||
image: quay.io/invidious/invidious:master
|
||||
env:
|
||||
- name: INVIDIOUS_CONFIG
|
||||
value: |
|
||||
db:
|
||||
dbname: $(POSTGRES_DB)
|
||||
user: $(POSTGRES_USER)
|
||||
password: $(POSTGRES_PASSWORD)
|
||||
host: invidious-db
|
||||
port: 5432
|
||||
check_tables: true
|
||||
invidious_companion:
|
||||
- private_url: "http://companion:8282"
|
||||
public_url: "http://localhost:8282"
|
||||
invidious_companion_key: $(COMPANION_KEY)
|
||||
hmac_key: $(HMAC_KEY)
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: invidious-db-secrets
|
||||
- secretRef:
|
||||
name: invidious-app-secrets
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
env:
|
||||
- name: hmac_key
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: invidious-hmac-key
|
||||
key: key
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: invidious-postgres-secret
|
||||
key: password
|
||||
- name: VISITOR_DATA
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: invidious-secret
|
||||
key: visitor-data
|
||||
- name: PO_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: invidious-secret
|
||||
key: po-token
|
||||
- name: INVIDIOUS_CONFIG
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: invidious-config
|
||||
key: config.yml
|
||||
- name: INVIDIOUS_PORT
|
||||
value: "3000"
|
||||
command: ["/bin/sh", "/scripts/start.sh"]
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/v1/trending
|
||||
port: 3000
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 2
|
||||
resources:
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
cpu: "1"
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
volumeMounts:
|
||||
- name: config-volume
|
||||
mountPath: /etc/invidious
|
||||
- name: scripts-volume
|
||||
mountPath: /scripts
|
||||
- name: logging
|
||||
mountPath: /var/log/invidious
|
||||
volumes:
|
||||
- name: config-volume
|
||||
emptyDir: {}
|
||||
- name: scripts-volume
|
||||
configMap:
|
||||
name: invidious-startup-script
|
||||
defaultMode: 0777
|
||||
- name: logging
|
||||
emptyDir: {}
|
||||
Reference in New Issue
Block a user