convert tubearchivist to app-template

This commit is contained in:
2024-05-27 21:15:17 -05:00
parent 33184b9eb9
commit e5fd5cf83d
4 changed files with 134 additions and 53 deletions

View File

@@ -1,13 +1,28 @@
apiVersion: v2 apiVersion: v2
name: tubearchivist name: tubearchivist
version: 0.0.7 version: 1.0.0
description: Tube Archivist
keywords:
- download
- video
- youtube
sources: sources:
- https://github.com/tubearchivist/tubearchivist - https://github.com/tubearchivist/tubearchivist
- https://github.com/alexlebens/helm-charts/charts/tubearchivist - https://github.com/bitnami/charts/tree/main/bitnami/redis
- https://github.com/tubearchivist/tubearchivist-jf - https://github.com/bitnami/charts/tree/main/bitnami/elasticsearch
- https://github.com/alexlebens/helm-charts/charts/tubearchivist-to-jellyfin - https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template
maintainers:
- name: alexlebens
dependencies: dependencies:
- name: tubearchivist - name: app-template
version: 0.2.9 alias: tubearchivist
repository: http://alexlebens.github.io/helm-charts repository: https://bjw-s.github.io/helm-charts/
appVersion: v0.4.6 version: 3.2.1
- name: redis
version: 19.3.4
repository: https://charts.bitnami.com/bitnami
- name: elasticsearch
version: 21.0.6
repository: https://charts.bitnami.com/bitnami
icon: https://avatars.githubusercontent.com/u/102734415?s=48&v=4
appVersion: v0.4.8

View File

@@ -4,7 +4,7 @@ metadata:
name: tubearchivist-nfs-storage name: tubearchivist-nfs-storage
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ .Release.Name }} app.kubernetes.io/name: tubearchivist-nfs-storage
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: storage app.kubernetes.io/component: storage

View File

@@ -4,7 +4,7 @@ metadata:
name: tubearchivist-nfs-storage name: tubearchivist-nfs-storage
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ .Release.Name }} app.kubernetes.io/name: tubearchivist-nfs-storage
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: storage app.kubernetes.io/component: storage
@@ -17,8 +17,8 @@ spec:
accessModes: accessModes:
- ReadWriteMany - ReadWriteMany
nfs: nfs:
path: {{ .Values.storage.youtube.nfsPath }} path: /volume2/Storage/YouTube
server: {{ .Values.storage.youtube.nfsServer }} server: synologybond.alexlebens.net
mountOptions: mountOptions:
- vers=4 - vers=4
- minorversion=1 - minorversion=1

View File

@@ -1,46 +1,112 @@
tubearchivist: tubearchivist:
deployment: controllers:
env: main:
TZ: US/Central type: deployment
envFrom: replicas: 1
- secretRef: strategy: Recreate
name: tubearchivist-config-secret revisionHistoryLimit: 3
resources: containers:
limits: main:
memory: 2Gi image:
cpu: 1000m repository: bbilly1/tubearchivist
tag: v0.4.8
pullPolicy: IfNotPresent
env:
- name: TZ
value: US/Central
envFrom:
- secretRef:
name: tubearchivist-config-secret
resources:
requests:
cpu: 100m
memory: 128Mi
serviceAccount:
create: true
service:
main:
controller: main
ports:
http:
port: 8000
targetPort: 8000
protocol: HTTP
ingress: ingress:
enabled: true main:
className: traefik className: traefik
annotations: annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true" traefik.ingress.kubernetes.io/router.tls: "true"
cert-manager.io/cluster-issuer: letsencrypt-issuer cert-manager.io/cluster-issuer: letsencrypt-issuer
host: tubearchivist.alexlebens.net hosts:
- host: tubearchivist.alexlebens.net
paths:
- path: /
pathType: Prefix
service:
name: main
port: 8000
tls:
- secretName: tubearchivist-secret-tls
hosts:
- tubearchivist.alexlebens.net
persistence: persistence:
cache: cache:
enabled: true type: emptyDir
storageClassName: ceph-block advancedMounts:
storageSize: 80Gi main:
main:
- path: /cache
readOnly: false
youtube: youtube:
claimName: tubearchivist-nfs-storage existingClaim: tubearchivist-nfs-storage
elasticsearch: advancedMounts:
global: main:
storageClass: ceph-block main:
extraEnvVarsSecret: tubearchivist-elasticsearch-secret - path: /youtube
extraConfig: readOnly: false
path: redis:
repo: /usr/share/elasticsearch/data/snapshot image:
extraVolumes: repository: redis/redis-stack-server
- name: snapshot tag: 7.2.0-v10
nfs: architecture: standalone
path: /volume2/Storage/TubeArchivist auth:
server: synologybond.alexlebens.net enabled: false
extraVolumeMounts: commonConfiguration: |-
- name: snapshot # Enable AOF https://redis.io/topics/persistence#append-only-file
mountPath: /usr/share/elasticsearch/data/snapshot appendonly yes
snapshotRepoPath: /usr/share/elasticsearch/data/snapshot # Disable RDB persistence, AOF persistence already enabled.
storage: save ""
youtube: # Enable Redis Json module
nfsPath: /volume2/Storage/YouTube loadmodule /opt/redis-stack/lib/rejson.so
nfsServer: synologybond.alexlebens.net 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