use inv-sig-helper instead of inv-companion

This commit is contained in:
2025-05-07 01:34:23 +05:30
parent 13b213c6b5
commit a324cae62f
5 changed files with 45 additions and 111 deletions

View File

@@ -2,77 +2,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: invidious-companion
name: inv-sig-helper
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: invidious-companion
app: inv-sig-helper
template:
metadata:
labels:
app: invidious-companion
app: inv-sig-helper
spec:
initContainers:
- name: vpn
restartPolicy: Always
image: qmcgaw/gluetun:v3.40.0
securityContext:
capabilities:
add:
- NET_ADMIN
env:
- name: OPENVPN_PASSWORD
valueFrom:
secretKeyRef:
name: openvpn-secrets
key: OPENVPN_PASSWORD
- name: OPENVPN_USER
valueFrom:
secretKeyRef:
name: openvpn-secrets
key: OPENVPN_USER
- name: VPN_SERVICE_PROVIDER
value: "surfshark"
- name: SERVER_COUNTRIES
value: "Netherlands"
- name: FIREWALL_INPUT_PORTS
value: "8282"
- name: FIREWALL_VPN_INPUT_PORTS
value: "8282"
- name: FIREWALL_OUTBOUND_SUBNETS
value: "192.168.1.0/24"
- name: DOT
value: "on"
- name: DNS_ADDRESS
value: "8.8.8.8"
volumeMounts:
- name: companion-cache
mountPath: /var/tmp/youtubei.js
subPath: youtubei.js
containers:
- name: invidious-companion
image: quay.io/invidious/invidious-companion@sha256:ac8fba6123adca367bf6fec18da788d420dd9b1167e8a3911375df42e88a1952
- name: inv-sig-helper
image: quay.io/invidious/inv-sig-helper@sha256:b5466c9add729e82e4e3ee5515c30b69df02d78ebb2486dbc9c63e456f29083d
args: ["--tcp", "0.0.0.0:12999"]
env:
- name: SERVER_SECRET_KEY
valueFrom:
secretKeyRef:
name: invidious-secrets
key: SERVER_SECRET_KEY
- name: RUST_LOG
value: "info"
ports:
- containerPort: 8282
- containerPort: 12999
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
volumeMounts:
- name: companion-cache
mountPath: /var/tmp/youtubei.js
subPath: youtubei.js
volumes:
- name: companion-cache
persistentVolumeClaim:
claimName: longhorn-invidious-cache