140 lines
3.5 KiB
YAML
140 lines
3.5 KiB
YAML
tubearchivist:
|
|
controllers:
|
|
main:
|
|
type: deployment
|
|
replicas: 1
|
|
strategy: Recreate
|
|
revisionHistoryLimit: 3
|
|
containers:
|
|
main:
|
|
image:
|
|
repository: bbilly1/tubearchivist
|
|
tag: v0.4.12
|
|
pullPolicy: IfNotPresent
|
|
env:
|
|
- name: TZ
|
|
value: US/Central
|
|
- name: HOST_UID
|
|
value: 1000
|
|
- name: HOST_GID
|
|
value: 1000
|
|
- name: ES_URL
|
|
value: http://tubearchivist-elasticsearch:9200
|
|
- name: REDIS_HOST
|
|
value: tubearchivist-redis-headless
|
|
- name: TA_HOST
|
|
value: tubearchivist-cl01tl.boreal-beaufort.ts.net
|
|
- name: TA_USERNAME
|
|
value: admin
|
|
envFrom:
|
|
- secretRef:
|
|
name: tubearchivist-config-secret
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
exec:
|
|
command:
|
|
- /usr/bin/env
|
|
- bash
|
|
- -c
|
|
- curl --fail http://localhost:8000/health
|
|
failureThreshold: 5
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 30
|
|
successThreshold: 1
|
|
timeoutSeconds: 10
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 1Gi
|
|
serviceAccount:
|
|
create: true
|
|
service:
|
|
main:
|
|
controller: main
|
|
ports:
|
|
http:
|
|
port: 80
|
|
targetPort: 8000
|
|
protocol: HTTP
|
|
ingress:
|
|
tailscale:
|
|
enabled: true
|
|
className: tailscale
|
|
hosts:
|
|
- host: tubearchivist-cl01tl
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
service:
|
|
name: tubearchivist
|
|
port: 80
|
|
tls:
|
|
- hosts:
|
|
- tubearchivist-cl01tl
|
|
persistence:
|
|
data:
|
|
storageClass: ceph-block
|
|
accessMode: ReadWriteOnce
|
|
size: 10Gi
|
|
retain: true
|
|
advancedMounts:
|
|
main:
|
|
main:
|
|
- path: /cache
|
|
readOnly: false
|
|
youtube:
|
|
existingClaim: tubearchivist-nfs-storage
|
|
advancedMounts:
|
|
main:
|
|
main:
|
|
- path: /youtube
|
|
readOnly: false
|
|
redis:
|
|
image:
|
|
repository: redis/redis-stack-server
|
|
tag: 7.2.0-v13
|
|
architecture: standalone
|
|
auth:
|
|
enabled: false
|
|
commonConfiguration: |-
|
|
# Enable AOF https://redis.io/topics/persistence#append-only-file
|
|
appendonly yes
|
|
# Disable RDB persistence, AOF persistence already enabled.
|
|
save ""
|
|
# Enable Redis Json module
|
|
loadmodule /opt/redis-stack/lib/rejson.so
|
|
elasticsearch:
|
|
global:
|
|
storageClass: ceph-block
|
|
extraEnvVars:
|
|
- name: discovery.type
|
|
value: single-node
|
|
- name: xpack.security.enabled
|
|
value: "true"
|
|
extraEnvVarsSecret: tubearchivist-elasticsearch-secret
|
|
extraConfig:
|
|
path:
|
|
repo: /usr/share/elasticsearch/data/snapshot
|
|
extraVolumes:
|
|
- name: snapshot
|
|
nfs:
|
|
path: /volume2/Storage/TubeArchivist
|
|
server: synologybond.alexlebens.net
|
|
extraVolumeMounts:
|
|
- name: snapshot
|
|
mountPath: /usr/share/elasticsearch/data/snapshot
|
|
snapshotRepoPath: /usr/share/elasticsearch/data/snapshot
|
|
master:
|
|
masterOnly: false
|
|
replicaCount: 1
|
|
data:
|
|
replicaCount: 0
|
|
coordinating:
|
|
replicaCount: 0
|
|
ingest:
|
|
enabled: false
|
|
replicaCount: 0
|