yt-dlp-bot: add
This commit is contained in:
44
yt-dlp-bot/deployment.yaml
Normal file
44
yt-dlp-bot/deployment.yaml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: yt-dlp-bot
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: yt-dlp-bot
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: yt-dlp-bot
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: yt-dlp-bot
|
||||||
|
image: git.dubyatp.xyz/williamp/yt-dlp-bot:2558a7e
|
||||||
|
env:
|
||||||
|
- name: OUT_PATH
|
||||||
|
value: /data/youtube-vids
|
||||||
|
- name: TEMP_PATH
|
||||||
|
value: /tmp/ytdlp-temp
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: yt-dlp-discord-token
|
||||||
|
volumeMounts:
|
||||||
|
- name: youtube-vids
|
||||||
|
mountPath: /data/youtube-vids
|
||||||
|
- name: temp
|
||||||
|
mountPath: /tmp/ytdlp-temp
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "3Gi"
|
||||||
|
cpu: "1"
|
||||||
|
volumes:
|
||||||
|
- name: youtube-vids
|
||||||
|
nfs:
|
||||||
|
server: 10.105.15.20
|
||||||
|
path: /mnt/hdd-pool/youtube-vids
|
||||||
|
- name: temp
|
||||||
|
emptyDir:
|
||||||
|
medium: Memory
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
21
yt-dlp-bot/secret.yaml
Normal file
21
yt-dlp-bot/secret.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: yt-dlp-discord-token
|
||||||
|
spec:
|
||||||
|
data:
|
||||||
|
- remoteRef:
|
||||||
|
conversionStrategy: Default
|
||||||
|
decodingStrategy: None
|
||||||
|
key: yt-dlp-bot
|
||||||
|
metadataPolicy: None
|
||||||
|
property: DISCORD_TOKEN
|
||||||
|
secretKey: DISCORD_TOKEN
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: weyma-vault
|
||||||
|
target:
|
||||||
|
creationPolicy: Owner
|
||||||
|
deletionPolicy: Retain
|
||||||
|
name: yt-dlp-discord-token
|
||||||
Reference in New Issue
Block a user