--- apiVersion: apps/v1 kind: Deployment metadata: name: invidious namespace: default spec: replicas: 1 selector: matchLabels: app: invidious template: metadata: labels: app: invidious spec: containers: - 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) - name: POSTGRES_USER valueFrom: secretKeyRef: name: invidious-db-secrets key: postgres-user - name: POSTGRES_PASSWORD valueFrom: secretKeyRef: name: invidious-db-secrets key: postgres-password - name: POSTGRES_DB valueFrom: secretKeyRef: name: invidious-db-secrets key: postgres-db envFrom: - secretRef: name: invidious-db-secrets - secretRef: name: invidious-app-secrets 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: {}