diff --git a/yt-dlp-bot/deployment.yaml b/yt-dlp-bot/deployment.yaml new file mode 100644 index 0000000..456b1b1 --- /dev/null +++ b/yt-dlp-bot/deployment.yaml @@ -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 \ No newline at end of file diff --git a/yt-dlp-bot/secret.yaml b/yt-dlp-bot/secret.yaml new file mode 100644 index 0000000..bd66221 --- /dev/null +++ b/yt-dlp-bot/secret.yaml @@ -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 \ No newline at end of file