mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-26 08:15:18 +08:00
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
creationTimestamp: null
|
||
|
labels:
|
||
|
ytdl: ytdl-worker
|
||
|
name: ytdl-worker
|
||
|
namespace: ytdl
|
||
|
spec:
|
||
|
replicas: 4
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
ytdl: ytdl-worker
|
||
|
template:
|
||
|
metadata:
|
||
|
creationTimestamp: null
|
||
|
labels:
|
||
|
ytdl: ytdl-worker
|
||
|
spec:
|
||
|
volumes:
|
||
|
- name: ytdl-pvc
|
||
|
persistentVolumeClaim:
|
||
|
claimName: ytdl-pvc
|
||
|
containers:
|
||
|
- name: ytdl-worker
|
||
|
image: bennythink/ytdlbot
|
||
|
args:
|
||
|
- /usr/local/bin/supervisord
|
||
|
- '-c'
|
||
|
- /ytdlbot/conf/supervisor_worker.conf
|
||
|
envFrom:
|
||
|
- configMapRef:
|
||
|
name: ytdlenv
|
||
|
resources: {}
|
||
|
volumeMounts:
|
||
|
- name: ytdl-pvc
|
||
|
mountPath: /ytdlbot/ytdlbot/data/
|
||
|
subPath: data/
|
||
|
terminationMessagePath: /dev/termination-log
|
||
|
terminationMessagePolicy: File
|
||
|
imagePullPolicy: Always
|
||
|
restartPolicy: Always
|
||
|
terminationGracePeriodSeconds: 30
|
||
|
dnsPolicy: ClusterFirst
|
||
|
securityContext: {}
|
||
|
schedulerName: default-scheduler
|
||
|
status: {}
|